|
|
|
SSC Rookie
      
Group: General Forum Members
Last Login: Today @ 8:19 AM
Points: 39,
Visits: 252
|
|
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
|
|
|
|
|
SSCertifiable
       
Group: General Forum Members
Last Login: Today @ 3:21 PM
Points: 5,317,
Visits: 11,307
|
|
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.
---------------------------------------------------------------------
|
|
|
|
|
Ten Centuries
      
Group: General Forum Members
Last Login: Yesterday @ 2:25 AM
Points: 1,125,
Visits: 14,518
|
|
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
|
|
|
|