What is blocking and how would you troubleshoot it?

Answers were Sorted based on User's Feedback



What is blocking and how would you troubleshoot it?..

Answer / swapna

Blocking happens when one connection from an application
holds a lock and a second connection requires a conflicting
lock type. This forces the second connection to wait,
blocked on the first.

Is This Answer Correct ?    4 Yes 0 No

What is blocking and how would you troubleshoot it?..

Answer / rajkumar

Blocking happens when one connection from an application
holds a lock and a second connection requires a conflicting
lock type. This forces the second connection to wait,
blocked on the first.

sp_who2 will give the list of blocking sessions. From that
we can find the objects using dbcc command.

Is This Answer Correct ?    3 Yes 0 No

What is blocking and how would you troubleshoot it?..

Answer / harikrishna

Blocks will occur when one processes holds a lock and
second processes requires a conflicting
lock type, then it blocks, check weather the I/O is moving
or not for the blocked processes.
use the below command to know the route block.
select spid,blocked from sysprocesses where blocked>0

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More SQL Server Interview Questions

Is SET a SQL Keyword?

4 Answers   BitWise,


What is the difference between Stored Procedure , Function and Package, 1. how many blocks in Package and what are they.

5 Answers   IBM,


How do indexes help, types?

0 Answers  


Can sql server 2016 run on windows 7?

0 Answers  


What are the differences between UNION and JOINS?

3 Answers   CarrizalSoft Technologies,






What are ddl (data definition language) statements for tables in ms sql server?

0 Answers  


How to sort query output in descending order in ms sql server?

0 Answers  


What are dml (data manipulation language) statements in ms sql server?

0 Answers  


How to get a list of columns in a view using "sys.columns" in ms sql server?

0 Answers  


What is a transactions?

0 Answers  


What is a scheduled job or what is a scheduled task?

0 Answers  


What is the return type of executeupdate ()?

0 Answers  


Categories