Migrating SQL Server Users

 

Are you migrating SQL users?  I recommend migrating their SID’s as well.  There is this article on MSDN.  The sum of it is to run this:

 

This awesome stored procedure is created, you can then run it as so:

 

The output is what would be needed to create the users, and their associated SID’s on a separate instance of SQL server. See http://support.microsoft.com/kb/918992

You can also pull the details from a single database, for example:

You can then use this output to manually recreate the logins:

I personally see this as useful when I do not have access to the source installation to run the first set of scripts, and am only supplied a backup.

 


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *