What is blocking and how would you troubleshoot it?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to create prepared statements using odbc_prepare()?

575


Do you know what is openxml in sql server?

616


How to disable a login name in ms sql server?

598


Give the query of getting last two records from the table in SQL SERVER?

543


what are different types of backups available in sql server? Given a particular scenario, how would you go about choosing a backup plan? : Sql server database administration

526






Data table as parameter in sql server?

569


Difference between group by clause and having clause in SQL?

570


Tell me what do you understand by a view? What does the with check option clause for a view do?

649


what is a correlated sub-query? : Sql server database administration

487


When should you use an instead of trigger?

561


What is meant by referential integrity?

596


How many types of built in functions are there in sql server 2012?

495


How to rebuild master databse?

673


Explain sql delete command?

617


What is forward - only cursors / read only cursor?

523