Select the product you need help with
- Internet Explorer
- Windows Phone
- More products
PRB: "Troubleshooting Orphaned Users" Topic in Books Online is Incomplete
Article ID: 274188 - View products that this article applies to.
This article was previously published under Q274188
When you restore a database backup to another server, you may experience a problem with orphaned users. The Troubleshooting Orphaned Users' topic in SQL Server Books Online does not outline the exact steps for troubleshooting this problem.
This article describes how you can troubleshoot orphaned users.
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Although the terms login and user are often used interchangeably, they are very different. A login is used for user authentication and a database user account is used for database access and permissions validation. Logins are associated to users by the security identifier (SID). A login is required for access to the SQL Server server. The process of verifying that a particular login is valid is called "authentication". This login must be associated to a SQL Server database user. You use the user account to control activities performed in the database. If no user account exists in a database for a specific login, the user that is using that login cannot access the database even though the user may be able to connect to the SQL Server server. The single exception to this situation is when the database contains the "guest" user account. A login that does not have an associated user account is mapped to the guest user. Conversely, if a database user exists but there is no login associated, the user is not able to log into SQL Server server.
When a database is restored to a different server it contains a set of users and permissions but there may not be any corresponding logins or the logins may not be associated with the same users. This condition is known as having "orphaned users."
Troubleshooting Orphaned UsersWhen you restore a database backup to another server, you may experience a problem with orphaned users. The following scenario illustrates the problem and shows how to resolve it.
Steps To Resolve Orphaned Users
For additional information about how to resolve permission issues when a database is moved between servers, click the article number below to view the article in the Microsoft Knowledge Base:
(http://support.microsoft.com/kb/240872/EN-US/ )INF: How to Resolve Permission Issues When a Database is Moved Between SQL Servers