Article ID: 934751 - Last Review: April 6, 2007 - Revision: 1.2 Error message when you log on to an instance of Microsoft SQL Server 2005 from SQL Server Management Studio: "Timeout expired. This timeout period elapsed prior to completion of the operation or the server is not responding"On This PageSYMPTOMSWhen you log on to an instance of Microsoft SQL Server 2005 from SQL Server Management Studio, you receive the following error message: Cannot connect to ComputerName/InstanceName Timeout expired. This timeout period elapsed prior to completion of the operation or the server is not responding. (Microsoft SQL Server) HResult 0x102, Level 16, State 1 ProtocolName Provider: Timeout error [258]. Sqlcmd: Error: Microsoft SQL Native Client : Unable to complete login process due to delay in login response. Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired. Additionally, CPU utilization is 100 percent during the logon process. This problem occurs if the following conditions are true:
CAUSEThis problem occurs because the permission cache entries for the Server object are initialized during the connection process. During this process, the SQL Server login is not a member of the sysadmin fixed server role. You experience 100 percent CPU utilization occurs when the permission cache for the Server object is initialized. Note Other problems may also cause the error message that is mentioned in the "Symptoms" section. WORKAROUNDTo work around this problem, use one of the following methods. Method 1Reduce the number of SQL Server logins that are in the instance of SQL Server 2005.If many users must have access to the instance of SQL Server 2005 from the Web, create a user table in the instance to manage these users in the instance. You do not have to create SQL Server logins for each user in the instance. You can also configure the SQL Server logins to use Windows authentication to log on to the instance. To do this, follow these steps:
Method 2Populate the permission cache entries before you log on to the instance. To do this, log on to the instance by using a SQL Server login that is not a member of the sysadmin fixed server role. When the permission cache entries are populated, you experience the problem that is described in the "Symptoms" section. However, if you log on the instance again, the logon process will be fast.STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section. MORE INFORMATIONWhen you use a member of the sysadmin fixed server role to log on to the instance, the permission cache entries for the Server object are not initialized. However, you must be careful when you grant users the sysadmin fixed server role for security reasons. For example, you have two SQL Server logins. One SQL Server logins is LoginA. The other SQL Server login is LoginB. Neither LoginA nor LoginB is a member of the sysadmin fixed server role. When you use LoginA to log on to the instance, the permission cache entries for the Server object are initialized. If many SQL Server logins exist in the instance of SQL Server 2005, the initialization process takes a long time to complete, and CPU utilization is 100 percent. After the logon process for LoginA is completed, any later logon processes will be fast. For example, if you try to use LoginB to log on to the instance of SQL Server 2005, the logon process will be fast even though you are using LoginB to log on to the instance for the first time. When you log on to an instance of SQL Server 2005, the following behavior may occur:
| Article Translations
|
Back to the top
