@@ -3,29 +3,14 @@ $FilePath = "/Users/brentozar/LocalOnly/Github/SQL-Server-First-Responder-Kit"
33$SqlVersionsPath = " $FilePath /SqlServerVersions.sql"
44$BlitzFirstPath = " $FilePath /sp_BlitzFirst.sql"
55
6- # All Core Blitz Without sp_BlitzQueryStore
6+ # Azure - skip sp_Blitz, sp_BlitzBackups, sp_DatabaseRestore, sp_ineachdb
77Get-ChildItem - Path " $FilePath " - Filter " sp_Blitz*.sql" |
8- Where-Object { $_.FullName -notlike " *sp_BlitzQueryStore .sql*" -and $_.FullName -notlike " *sp_BlitzInMemoryOLTP *" -and $_.FullName -notlike " *sp_BlitzFirst *" } |
8+ Where-Object { $_.FullName -notlike " *sp_Blitz .sql*" -and $_.FullName -notlike " *sp_BlitzBackups *" -and $_.FullName -notlike " *sp_DatabaseRestore *" } |
99ForEach-Object { Get-Content $_.FullName } |
10- Set-Content - Path " $FilePath /Install-Core-Blitz-No-Query-Store.sql" - Force
11- # append script to (re-)create SqlServerVersions Table (https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/issues/2429)
12- if ( test-path " $SqlVersionsPath " )
13- { Add-Content - Path " $FilePath /Install-Core-Blitz-No-Query-Store.sql" - Value (Get-Content - Path " $SqlVersionsPath " )}
14- if ( test-path " $BlitzFirstPath " )
15- { Add-Content - Path " $FilePath /Install-Core-Blitz-No-Query-Store.sql" - Value (Get-Content - Path " $BlitzFirstPath " )}
16-
17-
18- # All Core Blitz With sp_BlitzQueryStore
19- Get-ChildItem - Path " $FilePath " - Filter " sp_Blitz*.sql" |
20- Where-Object { $_.FullName -notlike " *sp_BlitzInMemoryOLTP*" -and $_.FullName -notlike " *sp_BlitzFirst*" } |
21- ForEach-Object { Get-Content $_.FullName } |
22- Set-Content - Path " $FilePath /Install-Core-Blitz-With-Query-Store.sql" - Force
23- # append script to (re-)create SqlServerVersions Table (https://github.com/BrentOzarULTD/SQL-Server-First-Responder-Kit/issues/2429)
24- if ( test-path " $SqlVersionsPath " )
25- { Add-Content - Path " $FilePath /Install-Core-Blitz-With-Query-Store.sql" - Value (Get-Content - Path " $SqlVersionsPath " )}
10+ Set-Content - Path " $FilePath /Install-Azure.sql" - Force
2611if ( test-path " $BlitzFirstPath " )
27- { Add-Content - Path " $FilePath /Install-Core-Blitz-With-Query-Store .sql" - Value (Get-Content - Path " $BlitzFirstPath " )}
28-
12+ { Add-Content - Path " $FilePath /Install-All-Scripts .sql" - Value (Get-Content - Path " $BlitzFirstPath " )}
13+
2914
3015# All Scripts
3116Get-ChildItem - Path " $FilePath " - Filter " sp_*.sql" |
0 commit comments