ConnectionManager.ExecuteTSql 方法
執行 Transact-SQL 命令。
命名空間: Microsoft.SqlServer.Management.Common
組件: Microsoft.SqlServer.ConnectionInfo (在 Microsoft.SqlServer.ConnectionInfo.dll 中)
語法
'宣告
Protected Function ExecuteTSql ( _
action As ConnectionManager.ExecuteTSqlAction, _
execObject As Object, _
fillDataSet As DataSet, _
catchException As Boolean _
) As Object
'用途
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
參數
- action
型別:Microsoft.SqlServer.Management.Common.ConnectionManager.ExecuteTSqlAction
ConnectionManager.ExecuteTSqlAction 物件。
- execObject
型別:Object
可執行的 Object。
- fillDataSet
型別:DataSet
DataSet 物件。
- catchException
型別:Boolean
指定是否要捕捉例外狀況的布林值。
傳回值
型別:Object
包含 Transact-SQL 命令結果的 Object。