remove redundunt write-host

This commit is contained in:
Dariy.Nurgaleev
2020-03-20 02:29:59 +07:00
parent d6c9eb8583
commit 3e0c42d950

View File

@@ -22,7 +22,6 @@ function Test-SqlConnection {
$ErrorActionPreference = 'Stop'
try {
$connectionString = 'Server={0};Integrated Security={1};User ID={2};Password={3}' -f $ServerName,$IntegratedSecurity,$UserName,$Password
Write-Host $connectionString
$sqlConnection = New-Object System.Data.SqlClient.SqlConnection $connectionString
$sqlConnection.Open()
Write-Host -Object "Connection to SQL Express was successful."