How to fix sql server user permission problem after restore database.


To find orphand user list.
--------------------------
USE <database_name>;
GO;
sp_change_users_login @Action='Report';
GO;

To Auto fix sql ser problem.
---------------------------
USE DB_NAME
GO
EXEC sp_change_users_login 'auto_fix', 'USER_NAME'
GO

Comments

Popular posts from this blog

How to install glibc 2.14 on RHEL 6/ RHEL 7/ CentOS 7

Export and Import users/groups and OU in AD Server 2008 using LDIFDE command.

How to Set Up and Configure latest yum repository on CentOS