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.
@zapcon, there is DMV
USE Master GO SELECT * FROM sys.dm_exec_requests WHERE blocking_session_id <> 0; GO
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_who; through you can identify the blocked
USE Master; GO EXEC sp_who2; GO
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