Skip to content

Commit 38f4f60

Browse files
committed
BrentOzarULTD#318 renaming sp_AskBrent to sp_BlitzFirst
1 parent 5593847 commit 38f4f60

File tree

1 file changed

+23
-22
lines changed

1 file changed

+23
-22
lines changed

sp_AskBrent.sql renamed to sp_BlitzFirst.sql

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
IF OBJECT_ID('dbo.sp_AskBrent') IS NULL
2-
EXEC ('CREATE PROCEDURE dbo.sp_AskBrent AS RETURN 0;')
1+
IF OBJECT_ID('dbo.sp_BlitzFirst') IS NULL
2+
EXEC ('CREATE PROCEDURE dbo.sp_BlitzFirst AS RETURN 0;')
33
GO
44

55

6-
ALTER PROCEDURE [dbo].[sp_AskBrent]
6+
ALTER PROCEDURE [dbo].[sp_BlitzFirst]
77
@Question NVARCHAR(MAX) = NULL ,
88
@Help TINYINT = 0 ,
99
@AsOf DATETIMEOFFSET = NULL ,
@@ -28,10 +28,10 @@ AS
2828
BEGIN
2929
SET NOCOUNT ON;
3030
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
31-
SET @VersionDate = '20160615'
31+
SET @VersionDate = '20160626'
3232

3333
IF @Help = 1 PRINT '
34-
sp_AskBrent from http://FirstResponderKit.org
34+
sp_BlitzFirst from http://FirstResponderKit.org
3535
3636
This script gives you a prioritized list of why your SQL Server is slow right now.
3737
@@ -53,7 +53,8 @@ Known limitations of this version:
5353
Unknown limitations of this version:
5454
- None. Like Zombo.com, the only limit is yourself.
5555
56-
Changes in v24 - YYYY/MM/DD
56+
Changes in v24 - 2016/06/26
57+
- Renamed from sp_AskBrent.
5758
- BREAKING CHANGE: Standardized input & output parameters to be
5859
consistent across the entire First Responder Kit. This also means the old
5960
old output parameter @Version is no more, because we are switching to
@@ -301,7 +302,7 @@ BEGIN
301302
checks, we insert data into this table, and we manually put in the CheckID.
302303
We (Brent Ozar Unlimited) maintain a list of the checks by ID#. You can
303304
download that from http://FirstResponderKit.org if you want to build
304-
a tool that relies on the output of sp_AskBrent.
305+
a tool that relies on the output of sp_BlitzFirst.
305306
*/
306307

307308
IF OBJECT_ID('tempdb..#AskBrentResults') IS NOT NULL
@@ -1021,7 +1022,7 @@ BEGIN
10211022
/* If we're waiting less than 30 seconds, run this check now rather than wait til the end.
10221023
We get this data from the ring buffers, and it's only updated once per minute, so might
10231024
as well get it now - whereas if we're checking 30+ seconds, it might get updated by the
1024-
end of our sp_AskBrent session. */
1025+
end of our sp_BlitzFirst session. */
10251026
INSERT INTO #AskBrentResults (CheckID, Priority, FindingsGroup, Finding, Details, DetailsInt, URL)
10261027
SELECT 24, 50, 'Server Performance', 'High CPU Utilization', CAST(100 - SystemIdle AS NVARCHAR(20)) + N'%. Ring buffer details: ' + CAST(record AS NVARCHAR(4000)), 100 - SystemIdle, 'http://www.BrentOzar.com/go/cpu'
10271028
FROM (
@@ -1579,7 +1580,7 @@ BEGIN
15791580
/* If we're waiting 30+ seconds, run this check at the end.
15801581
We get this data from the ring buffers, and it's only updated once per minute, so might
15811582
as well get it now - whereas if we're checking 30+ seconds, it might get updated by the
1582-
end of our sp_AskBrent session. */
1583+
end of our sp_BlitzFirst session. */
15831584
INSERT INTO #AskBrentResults (CheckID, Priority, FindingsGroup, Finding, Details, DetailsInt, URL)
15841585
SELECT 24, 50, 'Server Performance', 'High CPU Utilization', CAST(100 - SystemIdle AS NVARCHAR(20)) + N'%. Ring buffer details: ' + CAST(record AS NVARCHAR(4000)), 100 - SystemIdle, 'http://www.BrentOzar.com/go/cpu'
15851586
FROM (
@@ -1662,13 +1663,13 @@ BEGIN
16621663
)
16631664
VALUES ( -1 ,
16641665
0 ,
1665-
'sp_AskBrent ' + CAST(CONVERT(DATETIMEOFFSET, @VersionDate, 102) AS VARCHAR(100)),
1666+
'sp_BlitzFirst ' + CAST(CONVERT(DATETIMEOFFSET, @VersionDate, 102) AS VARCHAR(100)),
16661667
'From Your Community Volunteers' ,
16671668
'http://FirstResponderKit.org/' ,
16681669
'We hope you found this tool useful.'
16691670
);
16701671

1671-
/* Outdated sp_AskBrent - sp_AskBrent is Over 6 Months Old */
1672+
/* Outdated sp_BlitzFirst - sp_BlitzFirst is Over 6 Months Old */
16721673
IF DATEDIFF(MM, @VersionDate, SYSDATETIMEOFFSET()) > 6
16731674
BEGIN
16741675
INSERT INTO #AskBrentResults
@@ -1681,10 +1682,10 @@ BEGIN
16811682
)
16821683
SELECT 27 AS CheckID ,
16831684
0 AS Priority ,
1684-
'Outdated sp_AskBrent' AS FindingsGroup ,
1685-
'sp_AskBrent is Over 6 Months Old' AS Finding ,
1685+
'Outdated sp_BlitzFirst' AS FindingsGroup ,
1686+
'sp_BlitzFirst is Over 6 Months Old' AS Finding ,
16861687
'http://FirstResponderKit.org/' AS URL ,
1687-
'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
16881689
END
16891690

16901691

@@ -2604,20 +2605,20 @@ GO
26042605

26052606

26062607
/* How to run it:
2607-
EXEC dbo.sp_AskBrent
2608+
EXEC dbo.sp_BlitzFirst
26082609
26092610
With extra diagnostic info:
2610-
EXEC dbo.sp_AskBrent @ExpertMode = 1;
2611+
EXEC dbo.sp_BlitzFirst @ExpertMode = 1;
26112612
26122613
In Ask a Question mode:
2613-
EXEC dbo.sp_AskBrent 'Is this cursor bad?';
2614+
EXEC dbo.sp_BlitzFirst 'Is this cursor bad?';
26142615
26152616
Saving output to tables:
2616-
EXEC sp_AskBrent @Seconds = 60
2617+
EXEC sp_BlitzFirst @Seconds = 60
26172618
, @OutputDatabaseName = 'DBAtools'
26182619
, @OutputSchemaName = 'dbo'
2619-
, @OutputTableName = 'AskBrentResults'
2620-
, @OutputTableNameFileStats = 'AskBrentResults_FileStats'
2621-
, @OutputTableNamePerfmonStats = 'AskBrentResults_PerfmonStats'
2622-
, @OutputTableNameWaitStats = 'AskBrentResults_WaitStats'
2620+
, @OutputTableName = 'BlitzFirstResults'
2621+
, @OutputTableNameFileStats = 'BlitzFirstResults_FileStats'
2622+
, @OutputTableNamePerfmonStats = 'BlitzFirstResults_PerfmonStats'
2623+
, @OutputTableNameWaitStats = 'BlitzFirstResults_WaitStats'
26232624
*/

0 commit comments

Comments
 (0)