Freigeben über


ConnectionManager.ExecuteTSql Method

Definition

Executes T-SQL using the appropriate methods depending on the action information passed as the parameter.

protected object ExecuteTSql (Microsoft.SqlServer.Management.Common.ConnectionManager.ExecuteTSqlAction action, object execObject, System.Data.DataSet fillDataSet, bool catchException);
member this.ExecuteTSql : Microsoft.SqlServer.Management.Common.ConnectionManager.ExecuteTSqlAction * obj * System.Data.DataSet * bool -> obj
Protected Function ExecuteTSql (action As ConnectionManager.ExecuteTSqlAction, execObject As Object, fillDataSet As DataSet, catchException As Boolean) As Object

Parameters

action
ConnectionManager.ExecuteTSqlAction

Defines method to be used for executing T-SQL

execObject
Object

Object on which that method needs to be called

fillDataSet
DataSet

DataSet in which data need to filled in case of SqlDataAdapter execObject

catchException
Boolean

If the exception to be caught.

Returns

Applies to