Méthode ConnectionManager.ExecuteTSql
Exécute une commande Transact-SQL.
Espace de noms : Microsoft.SqlServer.Management.Common
Assembly : Microsoft.SqlServer.ConnectionInfo (en Microsoft.SqlServer.ConnectionInfo.dll)
Syntaxe
'Déclaration
Protected Function ExecuteTSql ( _
action As ConnectionManager.ExecuteTSqlAction, _
execObject As Object, _
fillDataSet As DataSet, _
catchException As Boolean _
) As Object
'Utilisation
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
Paramètres
- action
Type : Microsoft.SqlServer.Management.Common.ConnectionManager.ExecuteTSqlAction
Objet ConnectionManager.ExecuteTSqlAction.
- execObject
Type : Object
Object exécutable.
- fillDataSet
Type : DataSet
Objet DataSet.
- catchException
Type : Boolean
Valeur booléenne qui spécifie s'il faut intercepter une exception.
Valeur de retour
Type : Object
Object qui contient les résultats de la commande Transact-SQL.