Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 moving logins

Author  Topic 

Peter99
Constraint Violating Yak Guru

498 Posts

Posted - 2011-04-01 : 11:36:47
Hi,
We are preparing for disaster recovery scenario. We have sql server 2005 cluster active/passive.

After disaster we will rebuild two standalone servers of sql server 2005 and will restore msdb and users databases from netbackup. Cannot restore master as computer name will change. What I know that mostly logins are importat to move in new master database. I want to know is there any way I should script these logins on regular basis and when there is disaster, I will be able to restore these logins on new server? I need windows and sql server logins and their password, membership in each server and database roles etc.

Thanks

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-04-01 : 12:37:27
Here you go: http://weblogs.sqlteam.com/tarad/archive/2008/06/24/How-to-transfer-SQL-logins-between-SQL-Server-2005-instances.aspx

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Peter99
Constraint Violating Yak Guru

498 Posts

Posted - 2011-04-01 : 13:09:10
Thanks Tara for your help.
As we are working on production server, I just want to make sure it is tested.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-04-01 : 13:16:56
Yes it is tested. You don't have to use my code, my article shows other methods as well.

And feel free to test it in your test environment. I certainly don't recommend running things directly on production without first testing it in a non-prod environment.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

Peter99
Constraint Violating Yak Guru

498 Posts

Posted - 2011-04-01 : 17:19:41
Thanks Tara. Have a good weekend.
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2011-04-01 : 17:28:35
You're welcome, glad to help.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -