Skip to content

Commit 0325a30

Browse files
authored
Add contributors badge and fix code formating
1 parent 9434afb commit 0325a30

File tree

1 file changed

+33
-29
lines changed

1 file changed

+33
-29
lines changed

README.md

Lines changed: 33 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![stars badge]][stars]
55
[![forks badge]][forks]
66
[![issues badge]][issues]
7+
[![contributors_badge]][contributors]
78

89
Navigation
910
- [How to Install the Scripts](#how-to-install-the-scripts)
@@ -104,8 +105,8 @@ In addition to the [parameters common to many of the stored procedures](#paramet
104105

105106
#### Writing sp_Blitz Output to a Table
106107

107-
```SQL
108-
sp_Blitz @OutputDatabaseName = 'DBAtools', @OutputSchemaName = 'dbo', @OutputTableName = 'BlitzResults';
108+
```tsql
109+
EXEC sp_Blitz @OutputDatabaseName = 'DBAtools', @OutputSchemaName = 'dbo', @OutputTableName = 'BlitzResults';
109110
```
110111

111112
Checks for the existence of a table DBAtools.dbo.BlitzResults, creates it if necessary, then adds the output of sp_Blitz into this table. This table is designed to support multiple outputs from multiple servers, so you can track your server's configuration history over time.
@@ -114,16 +115,16 @@ Checks for the existence of a table DBAtools.dbo.BlitzResults, creates it if nec
114115

115116
#### Skipping Checks or Databases
116117

117-
```SQL
118+
```tsql
118119
CREATE TABLE dbo.BlitzChecksToSkip (
119-
ServerName NVARCHAR(128),
120-
DatabaseName NVARCHAR(128),
121-
CheckID INT
120+
ServerName NVARCHAR(128),
121+
DatabaseName NVARCHAR(128),
122+
CheckID INT
122123
);
123124
GO
124125
INSERT INTO dbo.BlitzChecksToSkip (ServerName, DatabaseName, CheckID)
125126
VALUES (NULL, 'SalesDB', 50)
126-
sp_Blitz @SkipChecksDatabase = 'DBAtools', @SkipChecksSchema = 'dbo', @SkipChecksTable = 'BlitzChecksToSkip'
127+
sp_Blitz @SkipChecksDatabase = 'DBAtools', @SkipChecksSchema = 'dbo', @SkipChecksTable = 'BlitzChecksToSkip';
127128
```
128129

129130
Checks for the existence of a table named Fred - just kidding, named DBAtools.dbo.BlitzChecksToSkip. The table needs at least the columns shown above (ServerName, DatabaseName, and CheckID). For each row:
@@ -396,7 +397,7 @@ Example calls:
396397

397398
Get information for the last hour from all sp_BlitzFirst output tables
398399

399-
```SQL
400+
```tsql
400401
EXEC sp_BlitzAnalysis
401402
@StartDate = NULL,
402403
@EndDate = NULL,
@@ -411,7 +412,7 @@ EXEC sp_BlitzAnalysis
411412

412413
Exclude specific tables e.g lets exclude PerfmonStats by setting to NULL, no lookup will occur against the table and a skipped message will appear in the resultset
413414

414-
```SQL
415+
```tsql
415416
EXEC sp_BlitzAnalysis
416417
@StartDate = NULL,
417418
@EndDate = NULL,
@@ -429,19 +430,19 @@ We are likely to be hitting some big tables here and some of these queries will
429430

430431
I have noticed that the Perfmon query can ask for a big memory grant so be mindful when including this table with large volumes of data:
431432

432-
```SQL
433+
```tsql
433434
SELECT
434-
[ServerName]
435-
,[CheckDate]
436-
,[counter_name]
437-
,[object_name]
438-
,[instance_name]
439-
,[cntr_value]
435+
[ServerName]
436+
, [CheckDate]
437+
, [counter_name]
438+
, [object_name]
439+
, [instance_name]
440+
, [cntr_value]
440441
FROM [dbo].[BlitzFirst_PerfmonStats_Actuals]
441442
WHERE CheckDate BETWEEN @FromDate AND @ToDate
442443
ORDER BY
443-
[CheckDate] ASC,
444-
[counter_name] ASC
444+
[CheckDate] ASC
445+
, [counter_name] ASC;
445446
```
446447

447448
[*Back to top*](#header1)
@@ -464,11 +465,11 @@ Parameters include:
464465

465466
An example run of sp_BlitzBackups to push data looks like this:
466467

467-
```
468-
EXEC sp_BlitzBackups @PushBackupHistoryToListener = 1, -- Turn it on!
469-
@WriteBackupsToListenerName = 'AG_LISTENER_NAME', -- Name of AG Listener and Linked Server
470-
@WriteBackupsToDatabaseName = 'FAKE_MSDB_NAME', -- Fake MSDB name you want to push to. Remember, can't be real MSDB.
471-
@WriteBackupsLastHours = -24 -- Hours back in time you want to go
468+
```tsql
469+
EXEC sp_BlitzBackups @PushBackupHistoryToListener = 1, -- Turn it on!
470+
@WriteBackupsToListenerName = 'AG_LISTENER_NAME', -- Name of AG Listener and Linked Server
471+
@WriteBackupsToDatabaseName = 'FAKE_MSDB_NAME', -- Fake MSDB name you want to push to. Remember, can't be real MSDB.
472+
@WriteBackupsLastHours = -24 -- Hours back in time you want to go
472473
```
473474

474475
In an effort to not clog your servers up, we've taken some care in batching things as we move data. Inspired by [Michael J. Swart's Take Care When Scripting Batches](http://michaeljswart.com/2014/09/take-care-when-scripting-batches/), we only move data in 10 minute intervals.
@@ -536,14 +537,15 @@ For information about how this works, see [Tara Kizer's white paper on Log Shipp
536537

537538
To check versions of any of the stored procedures, use their output parameters for Version and VersionDate like this:
538539

539-
```
540+
```tsql
540541
DECLARE @VersionOutput VARCHAR(30), @VersionDateOutput DATETIME;
541542
EXEC sp_Blitz
542-
@Version = @VersionOutput OUTPUT,
543-
@VersionDate = @VersionDateOutput OUTPUT,
544-
@VersionCheckMode = 1;
545-
SELECT @VersionOutput AS Version,
546-
@VersionDateOutput AS VersionDate;
543+
@Version = @VersionOutput OUTPUT,
544+
@VersionDate = @VersionDateOutput OUTPUT,
545+
@VersionCheckMode = 1;
546+
SELECT
547+
@VersionOutput AS Version,
548+
@VersionDateOutput AS VersionDate;
547549
```
548550

549551
[*Back to top*](#header1)
@@ -560,8 +562,10 @@ SELECT @VersionOutput AS Version,
560562
[stars badge]:https://img.shields.io/github/stars/BrentOzarULTD/SQL-Server-First-Responder-Kit.svg
561563
[forks badge]:https://img.shields.io/github/forks/BrentOzarULTD/SQL-Server-First-Responder-Kit.svg
562564
[issues badge]:https://img.shields.io/github/issues/BrentOzarULTD/SQL-Server-First-Responder-Kit.svg
565+
[contributors_badge]:https://img.shields.io/github/contributors/BrentOzarULTD/SQL-Server-First-Responder-Kit.svg
563566

564567
[licence]:https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/blob/master/LICENSE.md
565568
[stars]:https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/stargazers
566569
[forks]:https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/network
567570
[issues]:https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/issues
571+
[contributors]:https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/graphs/contributors

0 commit comments

Comments
 (0)