Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Connection Data
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Miscellaneous
Thread ID:
00595461
Message ID:
00595547
Views:
28
This message has been marked as the solution to the initial question of the thread.
According to the BOL:
@@CONNECTIONS - Returns the number of connections, or attempted connections, since Microsoft® SQL Server™ was last started.

@@MAX_CONNECTIONS - Returns the maximum number of simultaneous user connections allowed on a Microsoft® SQL Server™.

This should give you the number of user connections:

select COUNT(*) from master.dbo.sysprocesses where hostname > ''

-Mike
Michael Levy
MCSD, MCDBA
ma_levy@hotmail.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform