SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


How to add new login to Log Shipping


How to add new login to Log Shipping

Author
Message
Coozie
Coozie
Mr or Mrs. 500
Mr or Mrs. 500 (511 reputation)Mr or Mrs. 500 (511 reputation)Mr or Mrs. 500 (511 reputation)Mr or Mrs. 500 (511 reputation)Mr or Mrs. 500 (511 reputation)Mr or Mrs. 500 (511 reputation)Mr or Mrs. 500 (511 reputation)Mr or Mrs. 500 (511 reputation)

Group: General Forum Members
Points: 511 Visits: 356
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
george sibbald
george sibbald
SSC Guru
SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)SSC Guru (58K reputation)

Group: General Forum Members
Points: 58342 Visits: 13706
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.

---------------------------------------------------------------------
MysteryJimbo
MysteryJimbo
SSChampion
SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)SSChampion (13K reputation)

Group: General Forum Members
Points: 13207 Visits: 15346
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. :-D

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
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum








































































































































































SQLServerCentral


Search