You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
" Write-Host `"Warning! Can't query version of SQL Server '`$(`$title)' during `$(`$startAt.ElapsedMilliseconds / 1000) seconds`$([Environment]::NewLine)`$(`$exception)`" -ForegroundColor DarkRed",
Copy file name to clipboardExpand all lines: SqlServer-Version-Management.ps1
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -2262,7 +2262,7 @@ Function Write-Line([string[]] $directArgs = @()) {
2262
2262
$ansiValue=$ansiColors[$key];
2263
2263
$ansi+=$ansiValue;
2264
2264
$isReset= ($key-eq"Reset");
2265
-
if ($isReset) { $text="Gray"; $back="Black"; }
2265
+
if ($isReset) { $text="Gray"; $back="Black"; <# $ansi += $ansiColors["Reset"] #>}
2266
2266
if ($key-like"Text*") { $text=$key.SubString(4) }
2267
2267
if ($key-like"Back*") { $back=$key.SubString(4) }
2268
2268
$isControl=$true;
@@ -3733,7 +3733,7 @@ function Publish-SQLServer-SetupLogs([string] $toFolder, $compression=9) {
3733
3733
}
3734
3734
3735
3735
# Include File: [\Includes.SqlServer\Query-SqlServer-Version.ps1]
3736
-
functionQuery-SqlServer-Version([string] $title, [string] $connectionString,<# or #>[string] $instance, [int] $timeoutSec=30) {
3736
+
functionQuery-SqlServer-Version([string] $title, [string] $connectionString,<# or #>[string] $instance, [int] $timeoutSec=30, [string] $kind="Medium"<# or Title #>) {
3737
3737
if (-not$connectionString) { $connectionString="Server=$($instance);Integrated Security=SSPI;Connection Timeout=3;Pooling=False" }
Write-Host"Warning! Can't query version of SQL Server '$($title)' during $($startAt.ElapsedMilliseconds/1000) seconds$([Environment]::NewLine)$($exception)"-ForegroundColor DarkRed
0 commit comments