SMS: Calculating SQL User Connections for Systems Management Server 2.0 (260372)
The information in this article applies to:
- Microsoft Systems Management Server 2.0
- Microsoft Systems Management Server 2.0 SP1
This article was previously published under Q260372 SYMPTOMS
If more than five Systems Management Server (SMS) Administrator consoles in an organization simultaneously attempt to use a single primary site, the last SMS Administrator console that attempts to connect to the site's database may not be able to do so and the Administrator console may display "Connection Failed." This problem may be intermittent. When this problem occurs, the SMS Provider log file (Smsprov.log) may contain the following text:
E:\OPALSP1\sdk_provider\nt\smsprov\SspObjectQuery.cpp(4177) : SQL Connection attempt timed out.
E:\OPALSP1\sdk_provider\nt\smsprov\SspObjectQuery.cpp(1642) : Unable to get SQL connection.
CAUSE
This problem can occur if all available SQL connections have been used. Each Administrator console uses SQL user connections to access the database by using the SMS provider. If there are no available user connections, SMS Administrator console cannot connect to the SQL database.
WORKAROUND
To work around this issue, use the appropriate method.
Method 1
If you have multiple primary sites, you can temporarily resolve the issue by stopping and restarting the Windows Management service of the primary site server at every site. Note that doing so resets the connections to the SQL database. All active remote Administrator consoles must re-establish the connection. You can stop and restart the Windows Management service by using the Services tool in Control Panel.
Method 2
If SMS and SQL are running on the same computer, the SMS provider should also be located on the computer. Increase the MaxSQLConnections value in the Smsprov.mof file (additional information about doing this is contained later in this article). This file is located on the SMS site server in the SMS\Bin\ Platform folder.
If SMS and SQL are running on different computers and the SMS provider is located on the computer on which SQL is running, the Smsprov.mof file is located in the Drive:\Smsprov\MOFs\ Sitecode folder on the SQL server. You must compile this file after changing it. Do not compile the Smsprov.mof file that is located in the SMS\Bin\ Platform folder on the SMS site server. Doing so may cause the following error message when you select Remote Control on a resource in Collections:
A Database could not be found with the name supplied.
For additional information about this error message, click the article number below
to view the article in the Microsoft Knowledge Base:
264106 A Database could not be found with the name supplied
Editing the Smsprov.mof File
Open the Smsprov.mof file with any text editor (such as Notepad) and locate the following lines:
// *************************************
// SMS_ConfigData : SMS Provider Configuration data
// *************************************
[singleton]
class SMS_ConfigData
{
// Number of instances returned as a batch to CIMOM for query results
[Description("Undocumented - do not change")]
uint32 QueryInstanceBatchCount = 0;
// Max number of SQL connections allowed at one time by the provider
[Description("Undocumented - do not change")]
uint32 MaxSQLConnections = 60;
};
By default, the MaxSQLConnections value is set to 60. Change it to a higher number based on how many SMS Administrator consoles you have. Note that this file is not updated automatically even if you specify a higher number during SMS installation. You must make this change manually. After you make the change, you must recompile the file.
To recompile the Smsprov.mof file:
- Locate the Mofcomp.exe file. It is located in the %SystemRoot%\System32\WBEM folder.
- Run the following at the command line:
mofcomp %smsdriveletter%\sms\bin\i386\smsprov.mof
The output from the command should be similar to:
Microsoft (R) 32-bit MOF Compiler Version 1.10.698.0000
Copyright (C) Microsoft Corp. 1997. All rights reserved.
Parsing MOF file: smsprov.mof
MOF file has been successfully parsed
Storing data in the repository...
Done!
You must also update the SQL user connection configuration based on this change.
SQL Server 6.5- Start SQL Enterprise Manager.
- Right-click your SQL server, and then click Configure.
- On the Configuration tab, locate the User Connections item.
- Change the Current user connections value to a higher number.
- Click Apply Now, and then click OK.
- You must stop and restart the SQL server. Right-click your SQL server, and then click Stop.
- Right-click your SQL server, and then click Start.
SQL Server 7.0- Start SQL Enterprise Manager.
- Right-click your SQL server, and then click Properties.
- Click the Connection tab.
- Change the Maximum concurrent user connections value to a number that is at least 20 greater than the MaxSqlConnections value, or change the value to 0 for unlimited connections.
- Click Apply, and then click Yes to stop and restart your SQL server.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 6/14/2005 |
---|
Keywords: | kbBug kbConfig kbDatabase kbnofix kbServer kbsmsAdmin kbsmsProvider kbsmsUtil kbWBEM KB260372 |
---|
|