Skip to content

Commit 475ec45

Browse files
authored
Merge pull request #2690 from merlinbruno/issue-2676-filter-includes-non-index-locks
sp_BlitzLock - filter includes non-index locks
2 parents c4c44af + df09ff4 commit 475ec45

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sp_BlitzLock.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -824,6 +824,7 @@ You need to use an Azure storage account, and the path has to look like this: ht
824824
AND (dow.event_date < @EndDate OR @EndDate IS NULL)
825825
AND (dow.object_name = @ObjectName OR @ObjectName IS NULL)
826826
AND dow.lock_type NOT IN (N'HEAP', N'RID')
827+
AND dow.index_name is not null
827828
GROUP BY DB_NAME(dow.database_id), dow.index_name
828829
OPTION ( RECOMPILE );
829830

0 commit comments

Comments
 (0)