Skip to content

Commit

Permalink
πŸ› Fix connection string test
Browse files Browse the repository at this point in the history
  • Loading branch information
brianary authored Nov 15, 2023
1 parent f771c35 commit 67f52be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Test-ConnectionString.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ select @@ServerName [ServerName], db_name() [DatabaseName],
serverproperty('Edition') [Edition],
app_name() [AppName];
'@ |ConvertTo-OrderedDictionary.ps1
if($info.ContainsKey('Password')) {$info['Password'] = ConvertTo-SecureString $info['Password'] -AsPlainText -Force}
[void] $info.Add('Server', $server)
return [pscustomobject](Join-Keys.ps1 $conn $info)
$connInfo = Join-Keys.ps1 $conn $info
if($connInfo.Contains('Password')) {$connInfo['Password'] = ConvertTo-SecureString $connInfo['Password'] -AsPlainText -Force}
return [pscustomobject]$connInfo
}
else
{
Expand Down

0 comments on commit 67f52be

Please sign in to comment.