Skip to content

Commit 696a851

Browse files
authored
Merge pull request #3788 from erikdarlingdata/issue_3787
Update sp_BlitzLock.sql
2 parents fb1953e + 087df80 commit 696a851

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

sp_BlitzLock.sql

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1298,6 +1298,21 @@ BEGIN
12981298
@xe OUTPUT,
12991299
@xd OUTPUT;
13001300

1301+
/*This is a reasonable question to ask.*/
1302+
IF @xe IS NULL
1303+
AND @xd IS NULL
1304+
BEGIN
1305+
RAISERROR
1306+
(
1307+
'No rows found in %s.%s.%s. Try again later.',
1308+
11,
1309+
1,
1310+
@TargetDatabaseName,
1311+
@TargetSchemaName,
1312+
@TargetTableName
1313+
) WITH NOWAIT;
1314+
RETURN;
1315+
END;
13011316

13021317
/* Build dynamic SQL to extract the XML */
13031318
IF @xe = 1

0 commit comments

Comments
 (0)