Bill's Crappy Tech Blog

Showing posts with label SQL connections. Show all posts
Showing posts with label SQL connections. Show all posts

Tuesday, February 2, 2010

See the number of SQL connections to a database

SELECT db_name(dbid) as DatabaseName, count(dbid) as NoOfConnections,
loginame as LoginName
FROM sys.sysprocesses
WHERE dbid > 0
GROUP BY dbid, loginame
Posted by Bill Reed at 4:26 AM No comments:
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: SQL, SQL connections
Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ▼  2012 (2)
    • ▼  July (1)
      • Migrating from Wordpress to Google Blogger
    • ►  April (1)
  • ►  2011 (2)
    • ►  August (1)
    • ►  April (1)
  • ►  2010 (54)
    • ►  December (2)
    • ►  October (2)
    • ►  September (5)
    • ►  August (11)
    • ►  May (6)
    • ►  April (5)
    • ►  March (6)
    • ►  February (9)
    • ►  January (8)
  • ►  2009 (4)
    • ►  December (4)

About Me

Bill Reed
View my complete profile
Awesome Inc. theme. Powered by Blogger.