Skip to content
Permalink
Browse files

Update Invoke-DbaDiagnosticQueryScriptParser.ps1

Fixes #6029
  • Loading branch information...
EmanueleMeazzo EmanueleMeazzo
EmanueleMeazzo authored and EmanueleMeazzo committed Sep 9, 2019
1 parent d9da4de commit 3048090ab78d684628c53107db2a16931aa0ae6c
Showing with 1 addition and 1 deletion.
  1. +1 −1 internal/functions/Invoke-DbaDiagnosticQueryScriptParser.ps1
@@ -27,7 +27,7 @@ function Invoke-DbaDiagnosticQueryScriptParser {

foreach ($line in $fullscript) {
if ($start -eq $false) {
if (($line -match "You have the correct major version of SQL Server for this diagnostic information script") -or ($line.StartsWith("-- Server level queries ***"))) {
if (($line -match "You have the correct major version of SQL Server for this diagnostic information script") -or ($line.StartsWith("-- Server level queries ***") -or ($line.StartsWith("-- Instance level queries ***")))) {
$start = $true
}
continue

0 comments on commit 3048090

Please sign in to comment.
You can’t perform that action at this time.