Skip to content

Commit d87c661

Browse files
committed
#3669 - AI payload length debugging
In debug mode 2, select out payload length and data length. Working on #3669.
1 parent 70c0acf commit d87c661

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sp_BlitzCache.sql

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5252,9 +5252,8 @@ Thank you.'
52525252

52535253
IF @Debug = 2
52545254
BEGIN
5255-
SELECT @AIPayload AS AIPayload;
5256-
RAISERROR('AI Payload (first 4000 chars):', 0, 1) WITH NOWAIT;
5257-
PRINT LEFT(@AIPayload, 4000);
5255+
SELECT @CurrentQueryClipped AS CurrentQueryClipped, @AIPayload AS AIPayload,
5256+
LEN(@AIPayload) AS AIPayload_Length, DATALENGTH(@AIPayload) AS AIPayload_DataLength;
52585257
END;
52595258

52605259
RAISERROR('Calling AI endpoint for query plan analysis on query: ', 0, 1) WITH NOWAIT;

0 commit comments

Comments
 (0)