Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ce9742a

Browse files
Replaces text added to QueryType in second insert.
1 parent ea67c86 commit ce9742a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎sp_BlitzCache.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3191,7 +3191,7 @@ OPTION ( RECOMPILE );
31913191
RAISERROR(N'Inserting variables for other procs', 0, 1) WITH NOWAIT;
31923192
INSERT #stored_proc_info
31933193
( SPID, SqlHandle, QueryHash, variable_name, variable_datatype, compile_time_value, proc_name )
3194-
SELECT vi.SPID, vi.SqlHandle, vi.QueryHash, vi.variable_name, vi.variable_datatype, vi.compile_time_value, vi.proc_name
3194+
SELECT vi.SPID, vi.SqlHandle, vi.QueryHash, vi.variable_name, vi.variable_datatype, vi.compile_time_value, REPLACE(REPLACE(REPLACE(vi.proc_name, ')', ''), 'Statement (parent ', ''), 'Procedure or Function: ', '') ASproc_name
31953195
FROM #variable_info AS vi
31963196
WHERE NOT EXISTS
31973197
(

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /