What is blocking and how would you troubleshoot it?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we install sql server 2016 on windows 7?

690


What is @@error in sql?

636


What is the preferred way to create a clustered and non-clustered index? Which index should you create first the clustered or non-clustered?

489


Write an sql query for deleting duplicate rows?

564


What information is maintained within the msdb database?

554






What part does database design plays a role in performance of an sql server-based application?

538


What is sub-query in sql server?

679


What are the different types of Indexes available in SQL Server?

530


Why we need sql server?

570


What is the difference between the application object and session object?

612


How to store and query spatial data?

568


What are the steps to follow to configure SQL*Net?

570


Do comments need to go in a special place in sql server 2005?

521


Can a table be moved to different filegroup?

583


What is page in sql server?

525