SQL Server Career

Sharafat Sarker - SQL Server Database Admin,USA. Microsoft Certification ID : 8204884, Microsoft Certified IT Professional(MCITP), Microsoft Certified Technology Specialist(MCTS), Microsoft Certified Professional(MCP),Microsoft Technology Associate(MTA),Oracle Certified Associate(OCA),Certified Java Programmer.I am also Masters of IT Engineering Student in Virginia Tech. Here I want to share my working knowledge and experiences. Please feel free to contact: sarker9@vt.edu

Friday, February 13, 2015

How do you find Number of current connections ?

SELECT DB_NAME(dbid) as DBName,
COUNT(dbid) as NumberOfConnections, loginame as LoginName FROM  sys.sysprocesses
WHERE dbid > 0 GROUP BY dbid, loginame


Posted by Unknown at 7:22 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

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

About Me

Unknown
View my complete profile

Blog Archive

  • ▼  2015 (45)
    • ▼  February (15)
      • How do you set up collation during sql installation ?
      • How will you take SQL Server in single user mode ?
      • Microsoft SQL Server, Error: 14640
      • How do you find Number of current connections ?
      • How do you configure Msmdpump.dll for Analysis ser...
      • Which features do we need for Analysis services ?
      • How Data base size and path
      • There are no sql server instances or shared featur...
      • How do you install 32 bit SQL ??
      • How can Find Fully Qualified Domain Name(FQDN) ?
      • why and how do you restore MSDB Database in SQL Se...
      • How do you find out SQL Server installation Path ?
      • Which features do you need for SQL Client/Manageme...
      • How do you open new port and use in SQL server
      • How monitor SQL Cluster
    • ►  January (30)
Simple theme. Theme images by gaffera. Powered by Blogger.