diff --git a/images/win/scripts/Installers/Validate-SQLExpress.ps1 b/images/win/scripts/Installers/Validate-SQLExpress.ps1 index ddb4ca3fd..75ef91855 100644 --- a/images/win/scripts/Installers/Validate-SQLExpress.ps1 +++ b/images/win/scripts/Installers/Validate-SQLExpress.ps1 @@ -22,10 +22,10 @@ function Test-SqlConnection { $ErrorActionPreference = 'Stop' try { $connectionString = 'Server={0};Integrated Security={1};User ID={2};Password={3}' -f $ServerName,$IntegratedSecurity,$UserName,$Password - Write-Host -Object "Trying to connect to SQL Express instance: $ServerName" + Write-Host $connectionString $sqlConnection = New-Object System.Data.SqlClient.SqlConnection $connectionString $sqlConnection.Open() - Write-Host -Object "Connection to database: {0} was successful. Version of SQL Express is: {1}" -f $sqlConnection.Database,$sqlConnection.ServerVersion + Write-Host -Object "Connection to SQL Express was successful." return $sqlConnection.ServerVersion } catch {