SQL Server: Moving User Accounts?

Member_2_1316035
Member_2_1316035 used Ask the Experts™
on
I am trying to move SQL Server from one server to another. what I plan to do is to backup the database and restore it on the other end.
My question is will this process also take care of all the user accounts associated with the database? If not, is there a convenient way to move user accounts since I have hundreds of accounts on the server. thanks a bunch!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
SQL 2000 or 2005?

http://www.support.microsoft.com/?id=246133  for 2000

Author

Commented:
Thanks for your quick response.
How to Generate Services Revenue the Easiest Way

This Tuesday! Learn key insights about modern cyber protection services & gain practical strategies to skyrocket business:

- What it takes to build a cloud service portfolio
- How to determine which services will help your unique business grow
- Various use-cases and examples

Commented:
Hi,

In answer to your question:
Yes the process will take care of all the USER accounts associated with each database.

However, it will not take care of SERVER LOGINS on the database SERVER itself.
The article quoted above will allow you to transfer the LOGINS.

However, you may need to run "sp_update_users_login" in order to too 'fix' the link between the LOGIN and the database USER.
Please refer to the SQL Server BOL for details on using that procedure, you will need to use the 'UPDATE_ONE' option.

Best Regards,

David

Author

Commented:
Thanks so much David. Your answer is exactly what I need.
But I have just splitted the points to the other commenters. Sorry, I have no credit for your valuable input this time.

Commented:
No problem  :o)

The important thing is you got the answer you needed.

Best Regards,

David

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial