Home Forums SQL Server 2008 SQL Server 2008 Administration script to synchronize sid for login and users RE: script to synchronize sid for login and users
SQListic
SSCertifiable
Points: 6904
More actions
September 23, 2014 at 6:08 pm
#1747687
Refer http://sqlism.blogspot.com/2014/09/script-to-sync-up-logins-and-database.html
syncup the logins and users
USE DATABASE
GO
EXEC sp_change_users_login 'update_one'
,'databse username'
,'loginname'