Find Out Orphaned Users in the Database.
To know about the orphaned users in the database we can run below query and find out.
Use DatabaseName
go
sp_change_users_login 'Report'---This procedure used to give the details of orphaned users in the database. After you find the orphaned users take the users type two times the sameway mentioned below
EXEC sp_change_users_login 'Update_One','ramesh','ramesh'
EXEC sp_change_users_login 'Update_One','kiran','kiran'
EXEC sp_change_users_login 'Update_One','RequestDB','RequestDB'
Use DatabaseName
go
sp_change_users_login 'Report'---This procedure used to give the details of orphaned users in the database. After you find the orphaned users take the users type two times the sameway mentioned below
EXEC sp_change_users_login 'Update_One','ramesh','ramesh'
EXEC sp_change_users_login 'Update_One','kiran','kiran'
EXEC sp_change_users_login 'Update_One','RequestDB','RequestDB'
Comments