Skip to content

Commit 9b6c046

Browse files
authored
Merge pull request #2705 from BrentOzarULTD/VersionDateDocumentation
Documenting how to check versions
2 parents 88bae7a + 661a24f commit 9b6c046

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -451,6 +451,18 @@ For information about how this works, see [Tara Kizer's white paper on Log Shipp
451451
* @ExpertMode = 1 - turns on more details useful for digging deeper into results.
452452
* @OutputDatabaseName, @OutputSchemaName, @OutputTableName - pass all three of these in, and the stored proc's output will be written to a table. We'll create the table if it doesn't already exist. @OutputServerName will push the data to a linked server as long as you configure the linked server first and enable RPC OUT calls.
453453

454+
To check versions of any of the stored procedures, use their output parameters for Version and VersionDate like this:
455+
456+
```
457+
DECLARE @VersionOutput VARCHAR(30), @VersionDateOutput DATETIME;
458+
EXEC sp_Blitz
459+
@Version = @VersionOutput OUTPUT,
460+
@VersionDate = @VersionDateOutput OUTPUT,
461+
@VersionCheckMode = 1;
462+
SELECT @VersionOutput AS Version,
463+
@VersionDateOutput AS VersionDate;
464+
```
465+
454466
[*Back to top*](#header1)
455467

456468

0 commit comments

Comments
 (0)