| title | @@MAX_CONNECTIONS (Transact-SQL) | Microsoft Docs | |||||
|---|---|---|---|---|---|---|
| ms.custom | ||||||
| ms.date | 03/14/2017 | |||||
| ms.prod | sql-non-specified | |||||
| ms.reviewer | ||||||
| ms.suite | ||||||
| ms.technology |
|
|||||
| ms.tgt_pltfrm | ||||||
| ms.topic | language-reference | |||||
| f1_keywords |
|
|||||
| dev_langs |
|
|||||
| helpviewer_keywords |
|
|||||
| ms.assetid | 57eb9f4b-548f-4212-9684-a11d831c4732 | |||||
| caps.latest.revision | 29 | |||||
| author | BYHAM | |||||
| ms.author | rickbyh | |||||
| manager | jhubbard |
[!INCLUDEtsql-appliesto-ss2008-xxxx-xxxx-xxx_md]
Returns the maximum number of simultaneous user connections allowed on an instance of [!INCLUDEssNoVersion]. The number returned is not necessarily the number currently configured.
Transact-SQL Syntax Conventions
@@MAX_CONNECTIONS
integer
The actual number of user connections allowed also depends on the version of [!INCLUDEssNoVersion] that is installed and the limitations of your applications and hardware.
To reconfigure [!INCLUDEssNoVersion] for fewer connections, use sp_configure.
The following example shows returning the maximum number of user connections on an instance of [!INCLUDEssNoVersion]. The example assumes that [!INCLUDEssNoVersion] has not been reconfigured for fewer user connections.
SELECT @@MAX_CONNECTIONS AS 'Max Connections';
[!INCLUDEssResult]
Max Connections
---------------
32767
sp_configure
Configuration Functions
Configure the user connections Server Configuration Option