Metoda ConnectionManager.ExecuteTSql
Wykonuje Transact-SQL polecenia.
Przestrzeń nazw: Microsoft.SqlServer.Management.Common
Zestaw: Microsoft.SqlServer.ConnectionInfo (w Microsoft.SqlServer.ConnectionInfo.dll)
Składnia
'Deklaracja
Protected Function ExecuteTSql ( _
action As ConnectionManager..::..ExecuteTSqlAction, _
execObject As Object, _
fillDataSet As DataSet, _
catchException As Boolean _
) As Object
'Użycie
Dim action As ConnectionManager..::..ExecuteTSqlAction
Dim execObject As Object
Dim fillDataSet As DataSet
Dim catchException As Boolean
Dim returnValue As Object
returnValue = Me.ExecuteTSql(action, _
execObject, fillDataSet, catchException)
protected Object ExecuteTSql(
ConnectionManager..::..ExecuteTSqlAction action,
Object execObject,
DataSet fillDataSet,
bool catchException
)
protected:
Object^ ExecuteTSql(
ConnectionManager..::..ExecuteTSqlAction action,
Object^ execObject,
DataSet^ fillDataSet,
bool catchException
)
member ExecuteTSql :
action:ConnectionManager..::..ExecuteTSqlAction *
execObject:Object *
fillDataSet:DataSet *
catchException:bool -> Object
protected function ExecuteTSql(
action : ConnectionManager..::..ExecuteTSqlAction,
execObject : Object,
fillDataSet : DataSet,
catchException : boolean
) : Object
Parametry
- action
Typ: Microsoft.SqlServer.Management.Common.ConnectionManager.ExecuteTSqlAction
ConnectionManager.ExecuteTSqlAction Obiektu.
- execObject
Typ: System.Object
Plik wykonywalny Object.
- fillDataSet
Typ: System.Data.DataSet
DataSet Obiektu.
- catchException
Typ: System.Boolean
Wartość logiczna określająca, czy przechwytywać wyjątku.
Wartość zwracana
Typ: System.Object
A Object zawierający wyniki Transact-SQL polecenia.
Zobacz także