0

Monitoring software has indicated average lock wait times rising to 500ms during the night.

Is there any way of confirming which locks these were as we currently do not log any performance data to a table so would be relying just on DMV's.

Will be looking at writing performance data to a table for future reference.

0

@zapcon, there is DMV master.sys.dm_exec_requests;

USE Master
GO
SELECT * 
FROM sys.dm_exec_requests
WHERE blocking_session_id <> 0;
GO

The master.sys.dm_exec_requests; DMV provides details on all of the processes running in SQL Server. With the WHERE condition listed below, only blocked processes will be returned.

as well as Stored procedure such as sp_who2, & sp_who; through you can identify the blocked spid.

USE Master;
GO
EXEC sp_who2;
GO

The sp_who2 system stored procedure provides information about the current SQL Server processes with the associated users, application, database, CPU time, etc. The information returned can be filtered to return only the active processes by using the ‘active' parameter.

For your further Ref How to identify blocking in SQL Server

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.