diff --git a/Modules.Database/MSSQLServer.vb b/Modules.Database/MSSQLServer.vb index 93edde1a..af52c1f1 100644 --- a/Modules.Database/MSSQLServer.vb +++ b/Modules.Database/MSSQLServer.vb @@ -242,7 +242,7 @@ Public Class MSSQLServer _Logger.Debug("GetScalarValue: Running Query [{0}]", SQLCommand) - Using oConnection As SqlConnection = GetSQLConnection() + Using oConnection As SqlConnection = GetSQLConnection(ConnectionString) Using oSQLCOmmand = oConnection.CreateCommand() oSQLCOmmand.CommandText = SQLCommand oSQLCOmmand.CommandTimeout = _Timeout