Quick notes on how to do this.
List the orphaned users:
use RestoredDBName
EXEC sp_change_users_login 'Report'
Fix the users
use RestoredDBName
EXEC sp_change_users_login 'Auto_Fix', 'user'
-or-
EXEC sp_change_users_login 'Update_One', 'OrphanedUser', 'OrphanedUser'
More Details here.
https://msdn.microsoft.com/en-us/library/ms174378.aspx
No comments:
Post a Comment