|
|
|
@@ -271,13 +271,14 @@ Public Class MSSQLServer
|
|
|
|
''' </summary>
|
|
|
|
''' </summary>
|
|
|
|
''' <param name="SqlCommand">sqlcommand for datatable (select XYZ from TableORView)</param>
|
|
|
|
''' <param name="SqlCommand">sqlcommand for datatable (select XYZ from TableORView)</param>
|
|
|
|
''' <returns>Returns a datatable</returns>
|
|
|
|
''' <returns>Returns a datatable</returns>
|
|
|
|
''' <DebuggerStepThrough()>
|
|
|
|
<DebuggerStepThrough()>
|
|
|
|
Public Function GetDatatable(SqlCommand As String, Timeout As Integer) As DataTable Implements IDatabase.GetDatatable
|
|
|
|
Public Function GetDatatable(SqlCommand As String, Timeout As Integer) As DataTable Implements IDatabase.GetDatatable
|
|
|
|
Using oSqlConnection = GetSQLConnection()
|
|
|
|
Using oSqlConnection = GetSQLConnection()
|
|
|
|
Return GetDatatableWithConnectionObject(SqlCommand, oSqlConnection, TransactionMode.WithTransaction, Nothing, Timeout)
|
|
|
|
Return GetDatatableWithConnectionObject(SqlCommand, oSqlConnection, TransactionMode.WithTransaction, Nothing, Timeout)
|
|
|
|
End Using
|
|
|
|
End Using
|
|
|
|
End Function
|
|
|
|
End Function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<DebuggerStepThrough()>
|
|
|
|
Public Function GetDatatable(SqlCommand As String, Transaction As SqlTransaction, Optional Timeout As Integer = 120) As DataTable
|
|
|
|
Public Function GetDatatable(SqlCommand As String, Transaction As SqlTransaction, Optional Timeout As Integer = 120) As DataTable
|
|
|
|
Using oSqlConnection = GetSQLConnection()
|
|
|
|
Using oSqlConnection = GetSQLConnection()
|
|
|
|
Return GetDatatableWithConnectionObject(SqlCommand, oSqlConnection, TransactionMode.ExternalTransaction, Transaction, Timeout)
|
|
|
|
Return GetDatatableWithConnectionObject(SqlCommand, oSqlConnection, TransactionMode.ExternalTransaction, Transaction, Timeout)
|
|
|
|
|