Skip to content

Commit

Permalink
#3500 deprecating procs
Browse files Browse the repository at this point in the history
Moving sp_AllNightLog, sp_BlitzInMemoryOLTP, and sp_BlitzQueryStore into the deprecated folder.
  • Loading branch information
BrentOzar committed Apr 19, 2024
1 parent 9dbe1ea commit 57c0c6e
Show file tree
Hide file tree
Showing 9 changed files with 53,152 additions and 115,528 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
25 changes: 5 additions & 20 deletions Documentation/Development/Merge Blitz.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,14 @@ $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
#Azure - skip sp_Blitz, sp_BlitzBackups, sp_DatabaseRestore, sp_ineachdb
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*"} |
Where-Object { $_.FullName -notlike "*sp_Blitz.sql*" -and $_.FullName -notlike "*sp_BlitzBackups*" -and $_.FullName -notlike "*sp_DatabaseRestore*"} |
ForEach-Object { Get-Content $_.FullName } |
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")}
if ( test-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
#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")}
Set-Content -Path "$FilePath/Install-Azure.sql" -Force
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-All-Scripts.sql" -Value (Get-Content -Path "$BlitzFirstPath")}

#All Scripts
Get-ChildItem -Path "$FilePath" -Filter "sp_*.sql" |
Expand Down
65,045 changes: 28,248 additions & 36,797 deletions Install-All-Scripts.sql

Large diffs are not rendered by default.

60,118 changes: 24,892 additions & 35,226 deletions Install-Core-Blitz-No-Query-Store.sql → Install-Azure.sql

Large diffs are not rendered by default.

Loading

0 comments on commit 57c0c6e

Please sign in to comment.