Bill's Crappy Tech Blog

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
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Labels: SQL, SQL connections

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2012 (2)
    • ►  July (1)
    • ►  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)
      • Office SharePoint Server Publishing Infrastructure...
      • Hard Drive Recovery Videos
      • Installing SQL 2008 in a 2 node cluster
      • Creating a Windows 2003 Ent cluster with OpenFiler
      • Configuring OpenFiler v2.3 iSCSI target server
      • Ubuntu iSCSi target - 9.10
      • See the number of SQL connections to a database
      • Change the location of the TEMPDB
      • MOSS Search Service problem - crawl failing - bad ...
    • ►  January (8)
  • ►  2009 (4)
    • ►  December (4)

About Me

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