Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1db5e4e

Browse files
Set version to 2016SP2 if minorversion > 5026
There is a dedicated sql file for this level and higher
1 parent bbc8660 commit 1db5e4e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

‎functions/Invoke-DbaDiagnosticQuery.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,10 @@ function Invoke-DbaDiagnosticQuery {
250250
}
251251
}
252252

253+
if ($version -eq "2016" -and $server.VersionMinor -gt 5026 ) {
254+
$version = "2016SP2"
255+
}
256+
253257
if (!$instanceOnly) {
254258
if (-not $Database) {
255259
$databases = (Get-DbaDatabase -SqlInstance $server -ExcludeAllSystemDb -ExcludeDatabase $ExcludeDatabase).Name

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /