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

how we use window authentication connection with sql server.?

0 Answers   MCN Solutions,


what is trigger

1 Answers   CarrizalSoft Technologies, NIIT,


Explain about merge replications?

0 Answers  


What are the essential components of sql server service broker?

0 Answers  


How do I find the port number for sql server?

0 Answers  


What is multi-statement table-value user-defined function?

0 Answers  


can you any body tell me while running BCP Out in instance in sql server 2000 is getting error. Error = [Microsoft][ODBC SQL Server Driver][DBNETLIB]SQL Server does not exist or access denied.?

1 Answers  


How to write a query with a left outer join in ms sql server?

0 Answers  


Why and when do stored procedure recompile?

0 Answers  


how to dispaly a particular row details from a given table

2 Answers  


Can some one please help with a query which will take only max value of a column in a join.

2 Answers  


Diffrence between DTS vs SSIS

2 Answers   IBM, Infosys,


Categories