If
we want to see only active connections for specific database we need to write
the query like as shown below
SELECT SPID,STATUS,PROGRAM_NAME,LOGINAME,HOSTNAME,CMD
FROM MASTER.DBO.SYSPROCESSES WHERE
DB_NAME(DBID) = 'your database name'
AND DBID != 0
No comments:
Post a Comment