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 2008 Forums
 High Availability (2008)
 Log Shipping Transfer Logins

Author  Topic 

precept
Starting Member

5 Posts

Posted - 2013-08-05 : 15:33:58

Hello,

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:

AllLoginsFromSelectedDatabases

If objects exist = Skip

CopySids = True


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

Thx

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2013-08-05 : 15:50:39
Here's an article I wrote a while back. Was written for SQL 2005, but it also applies to newer versions.

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
   

- Advertisement -