Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

How to add new login to Log Shipping Expand / Collapse
Author
Message
Posted Thursday, May 26, 2011 2:30 PM
SSC Rookie

SSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC RookieSSC Rookie

Group: General Forum Members
Last Login: Wednesday, July 23, 2014 1:39 PM
Points: 45, Visits: 307
I have implemented log shipping and now I've been asked to add a new sql server account.

I added the account to the primary.
Then I used the sid from primary to create the same account on the secondary master database.

Problem is: The user account doesn't show up in the secondary databases.

How do you add new accounts to the primary and get them to show up in the secondary?

Thanks,
Mark
Post #1115845
Posted Thursday, May 26, 2011 4:05 PM
SSCertifiable

SSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiableSSCertifiable

Group: General Forum Members
Last Login: 2 days ago @ 1:21 PM
Points: 5,975, Visits: 12,883
did you use sp_help_revlogin to transfer the new ID?

what are the results when you run

exec sp_helpuser
and
exec sp_change_users_login 'report'

in the secondary database

if you added the user in the primary database and have restored a log backup post that action on the secondary, it will be there.


---------------------------------------------------------------------

Post #1115912
Posted Thursday, May 26, 2011 4:48 PM
Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Tuesday, July 22, 2014 7:33 AM
Points: 1,361, Visits: 15,264
george sibbald (5/26/2011)

if you added the user in the primary database and have restored a log backup post that action on the secondary, it will be there.


What he said.

Simply adding the login to both the source and destination SQL instance isnt enough. If a transaction log backup hasnt been taken, copied and restored the user wont be available at the destination
Post #1115928
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse