• subscribe
June 26, 2002 12:00 AM

Performing a Log Shipping Role Change

SQL Server Pro
InstantDoc ID #25295

I'm trying to create stored procedures for performing a log shipping role change. The same logins from the primary server are already on the secondary server. Can I just use the role-change stored procedures without having to create a Data Transformation Services (DTS) package to copy the logins from the primary server to the secondary server? If I can use just the role-change stored procedures, do I need to execute the sp_resolve_logins stored procedure to resolve any mismatch between the login and the database user?

If you've already copied the accounts to the secondary server, you can just use sp_resolve_logins to hook the accounts up to the database and match the SIDs from master..sysxlogins. You have to use sp_resolve_logins when you perform the log shipping role change because SQL Server assigns a unique SID to each user account, even if the user name has been used previously on this server or others. Sp_resolve_logins resets the SIDs to reflect the new SID in each of the databases accessible to the user. When you're combining databases from multiple systems, make sure no user-account name clashes occur. You can avoid those clashes by configuring your SQL Server to use integrated security.



ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here
  • SP1?
    I know there is a SP1 for SQL 2008 R2 available....and there is a "feature pack" as well... ...
  • SQL database mirroring
    I have SQL Server 2008 R2 Enterprise 64bit on Windows 2008 R2 Enterprise 64bit.  Each SQL Server has...
  • Dell Compellent Disk Drive
    Does anybody has experience with Dell Compellent Disk Drive? Basically, this system manages all disk...
  • Sql server performance tuning
    I need to find a tool that help me to optimize sql server,queries,improve the performance and solve ...