In SQL Server, the @@MAX_CONNECTIONS
configuration function returns the maximum number of simultaneous user connections allowed on an instance of SQL Server. The number returned is not necessarily the number currently configured.
No argument is required. You can simply use it in a SELECT
statement to return the maximum number of simultaneous user connections allowed on the current server.