-- turn on advanced options
sp_configure 'show advanced options', 1
go
reconfigure
go
-- display configuration value for max. number of user connections
sp_configure 'user connections'
go
sp_configure 'user connections', 0
go
-- turn the advanced options back off
sp_configure 'show advanced options', 0
go
reconfigure
go
select count(*) from sys.dm_exec_sessions where session_id > 50
|