diff --git a/Modules.Database/Adapters/MSSQLServer.vb b/Modules.Database/Adapters/MSSQLServer.vb index aba98385..910ee5b2 100644 --- a/Modules.Database/Adapters/MSSQLServer.vb +++ b/Modules.Database/Adapters/MSSQLServer.vb @@ -189,7 +189,9 @@ Public Class MSSQLServer Private Function TestCanConnect(ConnectionString As String) As Boolean Try _Logger.Debug("Testing connection to [{0}]", MaskConnectionString(ConnectionString)) - Dim oConnection As New SqlConnection(ConnectionString) + + Dim oDecryptedConnectionString = DecryptConnectionString(ConnectionString) + Dim oConnection As New SqlConnection(oDecryptedConnectionString) OpenSQLConnection(oConnection) oConnection.Close() Return True