how to know Who Is Blocking Your SQL Server?

Answer Posted / pandians

In SQL Server 2005, 2008, 2008 R2,...

Select Session_ID, Blocking_Session_ID From
Sys.Dm_Os_Waiting_Tasks Where Blocking_Session_ID Is Not
Null

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is BCP? When does it used in sql server 2012?

651


How to rebuild all indexes on a single table?

674


Explain what are the basic functions for master, msdb, model, tempdb databases?

618


Define ACID properties in a Database?

706


Where sql server usernames and passwords are stored in a sql server?

573






How many types of dimensions are there and what are they? : sql server analysis services, ssas

658


What is the difference between truncate and delete commands?

641


What are the dmvs? : sql server database administration

672


Explain filestream storage of sql server 2008?

597


write an SQL query to list the employees who joined in the month of January?

1259


You want to check the syntax of a complicated update sql statement without executing it. What command should you use?

564


Tell me what is use of except clause? How it differs from not in clause?

602


Can the “if update (colname)” statement be used in a delete trigger?

647


When should you use an instead of trigger?

622


What are audit control procedures?

667