We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fb1953e + 087df80 commit 696a851Copy full SHA for 696a851
1 file changed
sp_BlitzLock.sql
@@ -1298,6 +1298,21 @@ BEGIN
1298
@xe OUTPUT,
1299
@xd OUTPUT;
1300
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;
1316
1317
/* Build dynamic SQL to extract the XML */
1318
IF @xe = 1
0 commit comments