Use the user connections option to specify the maximum number of simultaneous user connections allowed on Microsoft® SQL Server™. The actual number of user connections allowed also depends the version of SQL Server you are using and the limits of your application(s) and hardware. SQL Server allows a maximum of 32,767 user connections.
Because user connections is dynamic (self-configuring option), SQL Server adjusts the maximum number of user connections automatically as needed, up to the maximum value allowable. For example, if only 10 users are logged in, 10 user connection objects are allocated. In most cases, you should not need to change the value for this option.
You can use SQL Server Query Analyzer and the following Transact-SQL statement to determine the maximum number of user connections that your system allows:
SELECT @@MAX_CONNECTIONS
user connections helps avoid overloading the server with too many concurrent connections. You can estimate the number of connections based on system and user requirements. For example, on a system with many users, each user would not usually require a unique connection. Connections can be shared among users. Users who are running DB-Library applications need one connection for each process started that calls the DB-Library dbopen function, and users who are running ODBC applications need a connection for each active connection handle in the application.
Important If you must use this option, do not set the value too high because each connection takes approximately 40 KB of overhead regardless of whether the connection is being used. If you exceed the maximum number of user connections, you receive an error message and are not able to connect until another connection becomes available.
user connections is an advanced option. If you are using the sp_configure system stored procedure to change the setting, you can change user connections only when show advanced options is set to 1. The setting takes effect after stopping and restarting the server.
To set user connections
RECONFIGURE | sp_configure |
Setting Configuration Options |