SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 High Availability (2008)
 Log Shipping Transfer Logins
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

5 Posts

Posted - 08/05/2013 :  15:33:58  Show Profile  Reply with Quote


I have setup log shipping for a couple of my databases (SQL 2008). I would like keep any additional logins created on the primary database in sync with the log shipping server. I would like to use the SSIS transfer logins task to accomplish this goal and run via a SQL Agent job. However, when I run the job I get the following error.

[Transfer Logins Task] Error: Execution failed with the following error: "Database 'DBNAME' cannot be opened. It is in the middle of a restore.".

I have the following settings on the task:


If objects exist = Skip

CopySids = True

I understand the logins cant be added while the database is restoring. Is there anyway around this issue?


Almighty SQL Goddess

38114 Posts

Posted - 08/05/2013 :  15:50:39  Show Profile  Visit tkizer's Homepage  Reply with Quote
Here's an article I wrote a while back. Was written for SQL 2005, but it also applies to newer versions.


Tara Kizer
Microsoft MVP for Windows Server System - SQL Server

Subscribe to my blog
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000