1- SET ANSI_NULLS ON ;
1+ SET ANSI_NULLS ON ;
22SET ANSI_PADDING ON ;
33SET ANSI_WARNINGS ON ;
44SET ARITHABORT ON ;
@@ -9,8 +9,49 @@ SET IMPLICIT_TRANSACTIONS OFF;
99SET STATISTICS TIME , IO OFF ;
1010GO
1111
12+ /*
13+ ██████╗ ██╗ ██╗███████╗██████╗ ██╗ ██╗
14+ ██╔═══██╗██║ ██║██╔════╝██╔══██╗╚██╗ ██╔╝
15+ ██║ ██║██║ ██║█████╗ ██████╔╝ ╚████╔╝
16+ ██║▄▄ ██║██║ ██║██╔══╝ ██╔══██╗ ╚██╔╝
17+ ╚██████╔╝╚██████╔╝███████╗██║ ██║ ██║
18+ ╚══▀▀═╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝ ╚═╝
19+
20+ ██████╗ ███████╗██████╗ ██████╗ ██████╗
21+ ██╔══██╗██╔════╝██╔══██╗██╔══██╗██╔═══██╗
22+ ██████╔╝█████╗ ██████╔╝██████╔╝██║ ██║
23+ ██╔══██╗██╔══╝ ██╔═══╝ ██╔══██╗██║ ██║
24+ ██║ ██║███████╗██║ ██║ ██║╚██████╔╝
25+ ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═════╝
26+
27+ ██████╗ ██╗ ██╗██╗██╗ ██████╗ ███████╗██████╗
28+ ██╔══██╗██║ ██║██║██║ ██╔══██╗██╔════╝██╔══██╗
29+ ██████╔╝██║ ██║██║██║ ██║ ██║█████╗ ██████╔╝
30+ ██╔══██╗██║ ██║██║██║ ██║ ██║██╔══╝ ██╔══██╗
31+ ██████╔╝╚██████╔╝██║███████╗██████╔╝███████╗██║ ██║
32+ ╚═════╝ ╚═════╝ ╚═╝╚══════╝╚═════╝ ╚══════╝╚═╝ ╚═╝
33+
34+ Copyright 2026 Darling Data, LLC
35+ https://www.erikdarling.com/
36+
37+ For usage and licensing details, run:
38+ EXECUTE sp_QueryReproBuilder
39+ @help = 1;
40+
41+ For working through errors:
42+ EXECUTE sp_QueryReproBuilder
43+ @debug = 1;
44+
45+ For support, head over to GitHub:
46+ https://code.erikdarling.com
47+
48+ */
49+
50+ IF OBJECT_ID (N ' dbo.sp_QueryReproBuilder' , N ' P' ) IS NULL
51+ EXECUTE (N ' CREATE PROCEDURE dbo.sp_QueryReproBuilder AS RETURN 138;' );
52+ GO
1253
13- CREATE OR ALTER PROCEDURE
54+ ALTER PROCEDURE
1455 dbo .sp_QueryReproBuilder
1556(
1657 @database_name sysname = NULL , /* the name of the database you want to look at query store in*/
0 commit comments