We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7ea337 commit 161fbb5Copy full SHA for 161fbb5
lib/mssql/Open-IcingaMSSQLConnection.psm1
@@ -68,7 +68,7 @@ function Open-IcingaMSSQLConnection()
68
$SqlConnection = New-Object System.Data.SqlClient.SqlConnection;
69
$SqlConnection.ConnectionString = "Server=$Address,$Port;";
70
71
- if ($null -ne $SqlDatabase) {
+ if ([string]::IsNullOrEmpty($SqlDatabase) -eq $FALSE) {
72
$SqlConnection.ConnectionString += "Database=$SqlDatabase;";
73
}
74
0 commit comments