Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get detailed list of connections to database in sql server 2005?

Tags:

How to get detailed list of connections to database in sql server 2005?

like image 954
x2. Avatar asked Jan 11 '11 04:01

x2.


People also ask

How do I get a list of all SQL Server logins?

Answer: In SQL Server, there is a catalog view (ie: system view) called sys. sql_logins. You can run a query against this system view that returns all of the Logins that have been created in SQL Server as well as information about these Logins.


1 Answers

Use the system stored procedure sp_who2.

like image 159
Brian Ball Avatar answered Oct 16 '22 16:10

Brian Ball