Microsoft KB Archive/886097

= How to manually modify SQL server connections in Systems Management Server 2.0 =

Article ID: 886097

Article Last Modified on 10/27/2006

-

APPLIES TO


 * Microsoft Systems Management Server 2.0 Standard Edition

-



SUMMARY
''When you install Microsoft Systems Management Server (SMS), you specify the number of concurrent SMS Administrator consoles that you plan to use. SMS allocates five Microsoft SQL Server user connections for each console. However, the actual number of connections that a console uses varies. For example, if you open all the console tree items at the same time, it uses more SQL Server connections than if you open one item at a time. No console uses more than 30 SQL Server user connections at the same time.

If you receive &quot;Out of SQL Connection&quot; error messages when you try to connect to the SMS site database, or if you want to add more consoles after the initial SMS installation, increase the number of SQL Server user connections by using the SQL Enterprise Manager or by using the Licensing Manager. Add five or more user connections for each additional console.

Note If you need additional SQL Server user connections, you might have to purchase more SQL Server client access licenses. Verify the number of licenses that your organization already owns to determine whether this is the case.

If you increase the number of SQL Server connections, also consider increasing the maximum number of SQL Server connections that are used by the SMS Provider. By default, the SMS Provider is configured to use a maximum of 60 simultaneous SQL Server connections. You can change this value by editing the Smsprov.mof file or the Sqlcon.mof file, and then compiling the changed file by using Mofcomp.exe.

Note The Smsprov.mof and the Sqlcon.mof files are included on the Microsoft BackOffice 4.5 Resource Kit CD-ROM.

''



INTRODUCTION
This article describes how to manually modify SQL server connections in SMS 2.0.



MORE INFORMATION
The maximum number of Microsoft SQL Server connections that are used by Microsoft Systems Management Server (SMS) Provider is specified by the value of the MaxSQLConnections property in the SMS_ConfigData SMS Provider class.

Note After you edit and compile Sqlcon.mof, if you then compile Smsprov.mof by using another set of values, the values in Smsprov.mof will replace the values that you previously compiled.

To change the maximum number of SQL Server connections, use one of following procedures.

Method 1: Modify the maximum number of connections from the SMS Provider to SQL Server by using the Smsprov.mof file
To do this, follow these steps:  Open the Smsprov.mof file in a text editor. In the following line, replace &quot;MCM&quot; with your three-letter site code:


 * 1) pragma namespace(&quot;\\\\.\\root\\SMS\\\site_MCM)

 In the following line, replace &quot;60&quot; with a new value:

uint32 MaxSQLConnections = 60;

 Save the file. At a command prompt, type mofcomp smsprov.mof . Stop the Windows Management service. Start the Windows Management service.</li></ol>

Method 2: Modify the maximum number of connections from the SMS Provider to SQL Server by using the Sqlcon.mof file
To do this, follow these steps: <ol> Open the Sqlcon.mof file in a text editor.</li> In the following line, replace &quot;ABC&quot; with your three-letter site code:


 * 1) pragma namespace(&quot;\\\\.\\root\\SMS\\\site_ABC)

</li> In the following line, replace &quot;60&quot; with a new value:

uint32 MaxSQLConnections = 60;

</li> Save the file.</li> At a command prompt, type mofcomp sqlcon.mof .</li> Stop the Windows Management service.</li> Start the Windows Management service.</li></ol>

Note Do not specify a value for SMSConfigData::MaxSQLConnections that exceeds the maximum number of SQL Server connections, minus 20. For example, if you set SQL Server for 100 SQL Server connections, set the SMS Provider to use a maximum of 80 connections. If you set the SMS Provider value too high, the SMS Provider will not control SQL Server connections correctly and might return &quot;Unable to Get SQL Connection&quot; error messages to the SMS Administrator console.

For information about using either the SQL Enterprise Manager or the SQL Server Licensing Manager, see your SQL Server documentation.

<div class="references_section">