You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sp_BlitzIndex.sql
+22-22Lines changed: 22 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ SET NOCOUNT ON;
34
34
SETTRANSACTIONISOLATIONLEVELREADUNCOMMITTED;
35
35
DECLARE @Version VARCHAR(30);
36
36
SET @Version ='4.0';
37
-
SET @VersionDate ='20160320';
37
+
SET @VersionDate ='20160626';
38
38
IF @Help =1PRINT'
39
39
/*
40
40
sp_BlitzIndex from http://FirstResponderKit.org
@@ -65,7 +65,7 @@ Known limitations of this version:
65
65
Unknown limitations of this version:
66
66
- We knew them once, but we forgot.
67
67
68
-
Changes in v4.0 - YYYY/MM/DD:
68
+
Changes in v4.0 - 2016/06/26:
69
69
- BREAKING CHANGE: Standardized input & output parameters to be
70
70
consistent across the entire First Responder Kit. This also means the old
71
71
old output parameter @Version is no more, because we are switching to
@@ -140,7 +140,7 @@ SELECT @SQLServerProductVersion = CAST(SERVERPROPERTY('ProductVersion') AS NVARC
140
140
SELECT @SQLServerEdition =CAST(SERVERPROPERTY('EngineEdition') ASINT); /* We default to online index creates where EngineEdition=3*/
141
141
SET @FilterMB=250;
142
142
143
-
RAISERROR(N'Starting run. sp_BlitzIndex(R) v3.0 - March 20, 2016', 0,1) WITHNOWAIT;
143
+
RAISERROR(N'Starting run. sp_BlitzIndex(R) v4.0 - June 26, 2016', 0,1) WITHNOWAIT;
144
144
145
145
IFOBJECT_ID('tempdb..#IndexSanity') ISNOTNULL
146
146
DROPTABLE #IndexSanity;
@@ -1427,10 +1427,10 @@ BEGIN
1427
1427
WHERE s.[object_id]=@ObjectID
1428
1428
UNION ALL
1429
1429
SELECTN'Database '+QUOTENAME(@DatabaseName) +N' as of '+convert(nvarchar(16),getdate(),121) +
1430
-
N' (sp_BlitzIndex(R) v2.02 - Jan 30, 2014)' ,
1431
-
N'From Brent Ozar Unlimited(R)' ,
1432
-
N'http://www.BrentOzar.com/BlitzIndex' ,
1433
-
N'Thanks from the Brent Ozar Unlimited(R) team. We hope you found this tool useful, and if you need help relieving your SQL Server pains, email us at [email protected].',
'Outdated sp_BlitzIndex', 'sp_BlitzIndex is Over 6 Months Old', 'http://www.BrentOzar.com/BlitzIndex/',
2766
+
'Outdated sp_BlitzIndex', 'sp_BlitzIndex is Over 6 Months Old', 'http://FirstResponderKit.org/',
2767
2767
'Fine wine gets better with age, but this sp_BlitzIndex (TM) v'+ @Version +' as of '+CAST(CONVERT(DATETIME, @VersionDate, 102) ASVARCHAR(100)) +' is more like bad cheese. Time to get a new one.',
2768
2768
N'',N'',N''
2769
2769
);
@@ -2776,8 +2776,8 @@ BEGIN;
2776
2776
VALUES ( -1, 0 ,
2777
2777
'sp_BlitzIndex (TM) v'+ @Version +' as of '+CAST(CONVERT(DATETIME, @VersionDate, 102) ASVARCHAR(100)),
2778
2778
CASEWHEN @GetAllDatabases =1THENN'All Databases'ELSEN'Database '+QUOTENAME(@DatabaseName) +N' as of '+convert(nvarchar(16),getdate(),121) END,
N'Thanks from the Brent Ozar Unlimited(R) team. We hope you found this tool useful, and if you need help relieving your SQL Server pains, email us at [email protected].'
2779
+
N'From Your Community Volunteers' , N'http://FirstResponderKit.org' ,
2780
+
N''
2781
2781
, N'',N''
2782
2782
);
2783
2783
END
@@ -2788,16 +2788,16 @@ BEGIN;
2788
2788
VALUES ( -1, 0 ,
2789
2789
'sp_BlitzIndex (TM) v'+ @Version +' as of '+CAST(CONVERT(DATETIME, @VersionDate, 102) ASVARCHAR(100)),
2790
2790
CASEWHEN @GetAllDatabases =1THENN'All Databases'ELSEN'Database '+QUOTENAME(@DatabaseName) +N' as of '+convert(nvarchar(16),getdate(),121) END,
N'Thanks from the Brent Ozar Unlimited(R) team. We hope you found this tool useful, and if you need help relieving your SQL Server pains, email us at [email protected].'
2791
+
N'From Your Community Volunteers' , N'http://FirstResponderKit.org' ,
'http://www.BrentOzar.com/BlitzIndex', 'Consider running with @Mode = 4 in individual databases (not all) for more detailed diagnostics.', 'The new default Mode 0 only looks for very serious index issues.', '', ''
2800
+
'http://FirstResponderKit.org', 'Consider running with @Mode = 4 in individual databases (not all) for more detailed diagnostics.', 'The new default Mode 0 only looks for very serious index issues.', '', ''
2801
2801
);
2802
2802
2803
2803
END
@@ -2808,16 +2808,16 @@ BEGIN;
2808
2808
VALUES ( -1, 0 ,
2809
2809
'sp_BlitzIndex (TM) v'+ @Version +' as of '+CAST(CONVERT(DATETIME, @VersionDate, 102) ASVARCHAR(100)),
2810
2810
CASEWHEN @GetAllDatabases =1THENN'All Databases'ELSEN'Database '+QUOTENAME(@DatabaseName) +N' as of '+convert(nvarchar(16),getdate(),121) END,
N'Thanks from the Brent Ozar Unlimited(R) team. We hope you found this tool useful, and if you need help relieving your SQL Server pains, email us at [email protected].'
2811
+
N'From Your Community Volunteers' , N'http://www.BrentOzar.com/BlitzIndex' ,
'Nice job! Or more likely, you have a nearly empty database.',
2820
-
'http://www.BrentOzar.com/BlitzIndex', 'Time to go read some blog posts.', '', '', ''
2820
+
'http://FirstResponderKit.org', 'Time to go read some blog posts.', '', '', ''
2821
2821
);
2822
2822
2823
2823
END
@@ -2925,9 +2925,9 @@ BEGIN;
2925
2925
UNION ALL
2926
2926
SELECTN'Database '+QUOTENAME(@DatabaseName) +N' as of '+convert(nvarchar(16),getdate(),121) ,
2927
2927
N'sp_BlitzIndex (TM) v'+ @Version +' as of '+CAST(CONVERT(DATETIME, @VersionDate, 102) ASVARCHAR(100)),
2928
-
N'From Brent Ozar Unlimited(R)' ,
2929
-
N'http://BrentOzar.com/BlitzIndex' ,
2930
-
N'Thanks from the Brent Ozar Unlimited(R) team. We hope you found this tool useful, and if you need help relieving your SQL Server pains, email us at [email protected].',
N'sp_BlitzIndex (TM) v'+ @Version +' as of '+CAST(CONVERT(DATETIME, @VersionDate, 102) ASVARCHAR(100)),
3037
-
N'From Brent Ozar Unlimited(R)' ,
3038
-
N'http://BrentOzar.com/BlitzIndex' ,
3037
+
N'From Your Community Volunteers' ,
3038
+
N'http://FirstResponderKit.org' ,
3039
3039
100000000000,
3040
-
N'Thanks from the Brent Ozar Unlimited(R) team. We hope you found this tool useful, and if you need help relieving your SQL Server pains, email us at [email protected].',
0 commit comments