How to Grant Access to a Snap Shot
If you try to directly grant access to a snap shot you will get the below error stating that the database is in read only mode.
Msg 3906, Level 16, State 1, Line 1
Failed to update database "
Msg 3906, Level 16, State 1, Procedure sp_MSadduser_implicit_ntlogin, Line 39
Failed to update database "
The reason is that the snapshots are in read only mode due to which we cannot make changes to add or remove a user.
If its a windows user then create a login in both the primary and mirror server. Then grant access to this login to the primary database, which will be replicated to the mirror.
If its a SQL Server login then its a bit tricky as the SIDs come into picture. You have to create a login in the primary then script it out with the SID using sp_help_revlogin script and then run the script in the mirror. Then grant the required access in the primary, which inturn will get replicated and the required user will have read access in the mirror and the snap shot.
Thats it for the day folks. Hope to I bump into some similar kind of problem and find a solution and waste google's page by blogging it here again. Until then its me signing off from you. Happy administrating & happy sunday cya..
With Smiles
Santhosh
0 Secrets:
Post a Comment