Next step of programming

Just another WordPress.com weblog

Posts Tagged ‘STORED PROCEDURE

Check who all are connected to SQL Server

with 2 comments

To check who all are connected to sql server and what they are doing, is a very important requirement. It can be required when you want to perform some exclusive work on you database(s) or for some other work also. In order to check who all are there and connected to which database we can use following stored procedure.

–Check who all connected and doing what
exec sp_who
go

It will give you the following result 

 

Result of store procedure sp_who

Result of store procedure sp_who

Written by A.Sethi

September 8, 2008 at 7:04 am