SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
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  

precept
Starting Member

5 Posts

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

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

USA
35952 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.

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
  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.03 seconds. Powered By: Snitz Forums 2000