How to check session deatils with blocked in MS_SQL

How to check session deatils with blocked in MS_SQL
=======================================

======================================================
Full session deatils with blocked
=========================================================
USE Master
GO
EXEC sp_who2
GO


----------------------------------or--------------------------


SELECT spid, kpid, blocked, d.name, open_tran, status, hostname,
cmd, login_time, loginame, net_library
FROM sys.sysprocesses p
INNER JOIN sys.databases d
 on p.dbid=d.database_id



Comments

Popular posts from this blog

SQL Tuning Task Creation ORA-13780: SQL statement does not exist.

Shareplex some commands

ORA-1092 : opitsk aborting process