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: README.md
+19-4Lines changed: 19 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,15 @@
1
1
# SQL Server First Responder Kit
2
+
[![licence badge]][licence]
3
+
[![stars badge]][stars]
4
+
[![forks badge]][forks]
5
+
[![issues badge]][issues]
2
6
3
7
You're a DBA, sysadmin, or developer who manages Microsoft SQL Servers. It's your fault if they're down or slow. These tools help you understand what's going on in your server.
4
8
5
9
* When you want an overall health check, run [sp_Blitz](#sp_blitz-overall-health-check).
6
10
* To learn which queries have been using the most resources, run [sp_BlitzCache](#sp_blitzcache-find-the-most-resource-intensive-queries).
7
11
* To analyze which indexes are missing or slowing you down, run [sp_BlitzIndex](#sp_blitzindex-tune-your-indexes).
8
-
* To find out why the server is slow right now, run [sp_AskBrent](#sp_askbrent-real-time-performance-advice).
12
+
* To find out why the server is slow right now, run [sp_BlitzFirst](#sp_blitzfirst-real-time-performance-advice).
9
13
10
14
To install, [download the latest release ZIP](https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/releases), then run the SQL files in the master database. (You can use other databases if you prefer.)
11
15
@@ -95,13 +99,13 @@ In addition to the [parameters common to many of the stored procedures](#paramet
95
99
96
100
(stub - describe the lesser-used stuff)
97
101
98
-
## sp_AskBrent: Real-Time Performance Advice
102
+
## sp_BlitzFirst: Real-Time Performance Advice
99
103
100
104
(stub - describe the big picture here)
101
105
102
-
### Advanced sp_AskBrent Parameters
106
+
### Advanced sp_BlitzFirst Parameters
103
107
104
-
In addition to the [parameters common to many of the stored procedures](#parameters-common-to-many-of-the-stored-procedures), here are the ones specific to sp_AskBrent:
108
+
In addition to the [parameters common to many of the stored procedures](#parameters-common-to-many-of-the-stored-procedures), here are the ones specific to sp_BlitzFirst:
105
109
106
110
(stub - describe the lesser-used stuff)
107
111
@@ -115,3 +119,14 @@ In addition to the [parameters common to many of the stored procedures](#paramet
115
119
## License
116
120
117
121
[The SQL Server First Responder Kit uses the MIT License.](LICENSE.md)
'Some things get better with age, like fine wine and your T-SQL. However, sp_AskBrent is not one of those things - time to go download the current one.'AS Details
1688
+
'Some things get better with age, like fine wine and your T-SQL. However, sp_BlitzFirst is not one of those things - time to go download the current one.'AS Details
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 Help@BrentOzar.com.',
'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 Help@BrentOzar.com.'
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 Help@BrentOzar.com.'
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 Help@BrentOzar.com.'
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 Help@BrentOzar.com.',
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 Help@BrentOzar.com.',
0 commit comments