We help IT Professionals succeed at work.

Disaster Recovery Planning -- Migrating Logins

191 Views
Last Modified: 2013-11-05
We are in the process of upgrading to SQL 2K5 from 2K.

Our DR plan is such that we take our 2 production SQL servers and combine them into 1 DR SQL Server. One of them becomes the master and then we attach the other databases. I was copying the sysxlogins /syslogins from SQL_2 to a DR info DB and then could import that into the master on SQL_1 at the DR site.

Withe the change that you can no longer touch the system tables, I'm going to have to resort to using the sp_help_revlogin (http://support.microsoft.com/kb/918992/) to transfer users.

What I'm looking for is some way to write the output to a table in a database other than master or to a text file using a SQL agent job or scheduled task.

Any ideas?
Comment
Watch Question

This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION
By the way, you can use a UNC path in the Output file, so this could write the file straight to the DR server.
Most Valuable Expert 2014

Author

Commented:
>> so this could write the file straight to the DR server.

We replicate our SAN LUNS. Effectively, my data drives from production are mounted against the DR system. Actually, that is how we do our backups. We mount the LUNS and then back them up.

I will put that into test. Give me a day and I'll award points.
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.