From ffa3159c4354435cef86a8cc7b041c49c2f23083 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Tue, 20 Oct 2020 11:46:52 +0200 Subject: [PATCH] use connectiong string in getscalarvaluewithconnection --- Modules.Database/MSSQLServer.vb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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