Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions sp_BlitzLock.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1298,6 +1298,21 @@ BEGIN
@xe OUTPUT,
@xd OUTPUT;

/*This is a reasonable question to ask.*/
IF @xe IS NULL
AND @xd IS NULL
BEGIN
RAISERROR
(
'No rows found in %s.%s.%s. Try again later.',
11,
1,
@TargetDatabaseName,
@TargetSchemaName,
@TargetTableName
) WITH NOWAIT;
RETURN;
END;

/* Build dynamic SQL to extract the XML */
IF @xe = 1
Expand Down
Loading