adspace


What is blocking and how would you troubleshoot it? : sql server database administration

Answer Posted / Mohit Madaan

Blocking in SQL Server occurs when one transaction holds a resource (like a table or row) that another transaction needs, causing the second transaction to wait. To troubleshoot blocking, you can use DBCC INPUTBUFFER and DBCC OPENQUERY to identify the blocked queries, SP_WhoIsActive to get detailed information about active sessions, and DBCC BLITZCACHE to check cached query plans.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to provide default values to function parameters?

1261


How do I find the sql server version?

1103


Can we make the the chages By Using the Sql if u know any function or process please inform me Actuall result: BRK1 Break 1 Part 1 00:01:00:00 60 BRK1 Break 1 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 BRK2 Break 2 Part 2 00:01:00:00 60 BRK2 Break 2 Part 3 00:01:00:00 60 BRK3 Break 3 Part 1 00:01:00:00 60 BRK3 Break 3 Part 2 00:01:00:00 60 Desired O/P: BRK1 Break 1 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 BRK2 Break 2 Part 1 00:01:00:00 60 Part 2 00:01:00:00 60 Part 3 00:01:00:00 60

2296


How to connect php with different port numbers?

1191


What are the risks of storing a hibernate-managed object in a cache? How do you overcome the problems?

1200


If you're given a raw data table, how would perform etl (extract, transform, load) with sql to obtain the data in a desired format?

1048


What is the difference between upgrade and migration in sql server?

1185


How can I check that whether automatic statistic update is enabled or not?

1113


If any stored procedure is encrypted, then can we see its definition in activity monitor?

1073


What is an indexed view?

1023


What is standby servers? Explain types of standby servers.

1081


what is the difference between openrowset and openquery?

1197


Can we shrink data file in sql server?

1130


Can sql servers link to other servers like oracle?

919


What is temporary table in sql server? Why we use temp table?

1023