Check out example codes for "mssql find deadlocks". It will help you in understanding the concepts better.

Code Example 1

--[status]
EXEC sp_whoisActive;

Learn ReactJs, React Native from akashmittal.com