-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3228 from BrentOzarULTD/20230215_release_prep_1
2023-02-15 release prep 1
- Loading branch information
Showing
2 changed files
with
17 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,39 @@ | ||
#Set your file path | ||
$FilePath = "C:\temp\SQL-Server-First-Responder-Kit" | ||
$SqlVersionsPath = "$FilePath\SqlServerVersions.sql" | ||
$BlitzFirstPath = "$FilePath\sp_BlitzFirst.sql" | ||
$FilePath = "/Users/brentozar/LocalOnly/Github/SQL-Server-First-Responder-Kit" | ||
$SqlVersionsPath = "$FilePath/SqlServerVersions.sql" | ||
$BlitzFirstPath = "$FilePath/sp_BlitzFirst.sql" | ||
|
||
#All Core Blitz Without sp_BlitzQueryStore | ||
Get-ChildItem -Path "$FilePath" -Filter "sp_Blitz*.sql" | | ||
Where-Object { $_.FullName -notlike "*sp_BlitzQueryStore.sql*" -and $_.FullName -notlike "*sp_BlitzInMemoryOLTP*" -and $_.FullName -notlike "*sp_BlitzFirst*"} | | ||
ForEach-Object { Get-Content $_.FullName } | | ||
Set-Content -Path "$FilePath\Install-Core-Blitz-No-Query-Store.sql" -Force | ||
Set-Content -Path "$FilePath/Install-Core-Blitz-No-Query-Store.sql" -Force | ||
#append script to (re-)create SqlServerVersions Table (https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/issues/2429) | ||
if ( test-path "$SqlVersionsPath") | ||
{ Add-Content -Path "$FilePath\Install-Core-Blitz-No-Query-Store.sql" -Value (Get-Content -Path "$SqlVersionsPath")} | ||
{ Add-Content -Path "$FilePath/Install-Core-Blitz-No-Query-Store.sql" -Value (Get-Content -Path "$SqlVersionsPath")} | ||
if ( test-path "$BlitzFirstPath") | ||
{ Add-Content -Path "$FilePath\Install-Core-Blitz-No-Query-Store.sql" -Value (Get-Content -Path "$BlitzFirstPath")} | ||
{ Add-Content -Path "$FilePath/Install-Core-Blitz-No-Query-Store.sql" -Value (Get-Content -Path "$BlitzFirstPath")} | ||
|
||
|
||
#All Core Blitz With sp_BlitzQueryStore | ||
Get-ChildItem -Path "$FilePath" -Filter "sp_Blitz*.sql" | | ||
Where-Object { $_.FullName -notlike "*sp_BlitzInMemoryOLTP*" -and $_.FullName -notlike "*sp_BlitzFirst*"} | | ||
ForEach-Object { Get-Content $_.FullName } | | ||
Set-Content -Path "$FilePath\Install-Core-Blitz-With-Query-Store.sql" -Force | ||
Set-Content -Path "$FilePath/Install-Core-Blitz-With-Query-Store.sql" -Force | ||
#append script to (re-)create SqlServerVersions Table (https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/issues/2429) | ||
if ( test-path "$SqlVersionsPath") | ||
{ Add-Content -Path "$FilePath\Install-Core-Blitz-With-Query-Store.sql" -Value (Get-Content -Path "$SqlVersionsPath")} | ||
{ Add-Content -Path "$FilePath/Install-Core-Blitz-With-Query-Store.sql" -Value (Get-Content -Path "$SqlVersionsPath")} | ||
if ( test-path "$BlitzFirstPath") | ||
{ Add-Content -Path "$FilePath\Install-Core-Blitz-With-Query-Store.sql" -Value (Get-Content -Path "$BlitzFirstPath")} | ||
{ Add-Content -Path "$FilePath/Install-Core-Blitz-With-Query-Store.sql" -Value (Get-Content -Path "$BlitzFirstPath")} | ||
|
||
|
||
#All Scripts | ||
Get-ChildItem -Path "$FilePath" -Filter "sp_*.sql" | | ||
Where-Object { $_.FullName -notlike "*sp_BlitzInMemoryOLTP*" -and $_.FullName -notlike "*sp_BlitzFirst*"} | | ||
ForEach-Object { Get-Content $_.FullName } | | ||
Set-Content -Path "$FilePath\Install-All-Scripts.sql" -Force | ||
Set-Content -Path "$FilePath/Install-All-Scripts.sql" -Force | ||
#append script to (re-)create SqlServerVersions Table (https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/issues/2429) | ||
if ( test-path "$SqlVersionsPath") | ||
{ Add-Content -Path "$FilePath\Install-All-Scripts.sql" -Value (Get-Content -Path "$SqlVersionsPath")} | ||
{ Add-Content -Path "$FilePath/Install-All-Scripts.sql" -Value (Get-Content -Path "$SqlVersionsPath")} | ||
if ( test-path "$BlitzFirstPath") | ||
{ Add-Content -Path "$FilePath\Install-All-Scripts.sql" -Value (Get-Content -Path "$BlitzFirstPath")} | ||
{ Add-Content -Path "$FilePath/Install-All-Scripts.sql" -Value (Get-Content -Path "$BlitzFirstPath")} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters