use connectiong string in getscalarvaluewithconnection

This commit is contained in:
Jonathan Jenne 2020-10-20 11:46:52 +02:00
parent ec3ac118f3
commit ffa3159c43

View File

@ -242,7 +242,7 @@ Public Class MSSQLServer
_Logger.Debug("GetScalarValue: Running Query [{0}]", SQLCommand) _Logger.Debug("GetScalarValue: Running Query [{0}]", SQLCommand)
Using oConnection As SqlConnection = GetSQLConnection() Using oConnection As SqlConnection = GetSQLConnection(ConnectionString)
Using oSQLCOmmand = oConnection.CreateCommand() Using oSQLCOmmand = oConnection.CreateCommand()
oSQLCOmmand.CommandText = SQLCommand oSQLCOmmand.CommandText = SQLCommand
oSQLCOmmand.CommandTimeout = _Timeout oSQLCOmmand.CommandTimeout = _Timeout