Dimitry's Thoughts
Friday, July 22, 2011
Check for open connections on SQL Server
Wonder how many open connections you have? Run this:
SELECT DB_NAME(dbid) as 'Database', COUNT(dbid) as 'Open Connections' from master.dbo.sysprocesses with (nolock)
GROUP BY dbid
Results are:
Database
Open Connections
SomeDBName
1
No comments:
Post a Comment
Older Post
Home
Subscribe to:
Post Comments (Atom)
Labels
android
(2)
C#
(14)
Code
(3)
Effective C#
(14)
sqlserver
(1)
Stock
(14)
wcf
(1)
No comments:
Post a Comment