PRB: User Logon and/or Permission Errors After Restoring Dump

ID: Q168001


The information in this article applies to:


SYMPTOMS

If a dump of a SQL Server user database is restored to a different SQL Server (such as a hot backup server) or to the same SQL Server after either rebuilding or reloading an old version of the master database, user logons and permissions on the database may be incorrect.

This problem may reveal itself in several ways:


CAUSE

User logon information is stored in the syslogins table in the master database. By changing servers, or by altering this information by rebuilding or restoring an old version of the master database, the information may be different from when the user database dump was created. If logons do not exist for the users, they will receive error 4002 "Login failed" while attempting to log on to the server. If the user logons do exist, but the SUID values in master..syslogins and the sysusers table in the user database differ, the users may have different permissions than expected in the user database.


WORKAROUND

To work around this problem, do any of the following:


Keywords          : kbusage SSrvAdmin 
Version           : 6.0 6.5
Platform          : WINDOWS 
Issue type        : kbprb 

Last Reviewed: April 9, 1999