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

What is difference between inner join and full join?

0 Answers  


logshipping is Any difference 2000 and 2005?

2 Answers  


A table contains list of customers and his city with other details. Each customer has a unique number and the table consists millions of data. Query is: I want to retrieve 10 customers from each city, no script, only from single query?

8 Answers   Infosys,


How to enter date and time literals in ms sql server?

0 Answers  


explain different types of backups avaialabe in sql server? : Sql server database administration

0 Answers  






Can you get second highest salary from the table?

0 Answers   QuestPond,


What is the difference between Userdefined function and stored procedure? Explain and give the example also

5 Answers  


What is bulkcopy in sql?

0 Answers  


How to rebuild master databse?

0 Answers  


How can you insert null values in a column while inserting the data?

0 Answers  


What is the difference between executequery () and executeupdate ()?

0 Answers  


One table how may column and Primary key

3 Answers  


Categories