Méthode IDMQueryTask.ExecuteQuery
Cette API prend en charge l'infrastructure SQL Server 2012 et n'est pas destinée à être utilisée directement à partir de votre code.
Executes the query found in the QueryString property.
Espace de noms : Microsoft.SqlServer.Dts.Tasks.DMQueryTask
Assembly : Microsoft.SqlServer.DMQueryTask (en Microsoft.SqlServer.DMQueryTask.dll)
Syntaxe
'Déclaration
Function ExecuteQuery ( _
connections As Connections, _
variables As VariableDispenser, _
events As IDTSComponentEvents, _
log As IDTSLogging, _
txn As Object _
) As Boolean
'Utilisation
Dim instance As IDMQueryTask
Dim connections As Connections
Dim variables As VariableDispenser
Dim events As IDTSComponentEvents
Dim log As IDTSLogging
Dim txn As Object
Dim returnValue As Boolean
returnValue = instance.ExecuteQuery(connections, _
variables, events, log, txn)
bool ExecuteQuery(
Connections connections,
VariableDispenser variables,
IDTSComponentEvents events,
IDTSLogging log,
Object txn
)
bool ExecuteQuery(
Connections^ connections,
VariableDispenser^ variables,
IDTSComponentEvents^ events,
IDTSLogging^ log,
Object^ txn
)
abstract ExecuteQuery :
connections:Connections *
variables:VariableDispenser *
events:IDTSComponentEvents *
log:IDTSLogging *
txn:Object -> bool
function ExecuteQuery(
connections : Connections,
variables : VariableDispenser,
events : IDTSComponentEvents,
log : IDTSLogging,
txn : Object
) : boolean
Paramètres
- connections
Type : Microsoft.SqlServer.Dts.Runtime.Connections
A collection of connections used by the task.
- variables
Type : Microsoft.SqlServer.Dts.Runtime.VariableDispenser
A VariableDispenser object for locking variables.
- events
Type : Microsoft.SqlServer.Dts.Runtime.IDTSComponentEvents
An object that implements the IDTSComponentEvents interface.
- log
Type : Microsoft.SqlServer.Dts.Runtime.IDTSLogging
An object that implements the IDTSLogging interface.
- txn
Type : System.Object
The transaction objects that the container is a part of. This value can be nullune référence Null (Nothing dans Visual Basic).
Valeur de retour
Type : System.Boolean
true indicates that the DMX query task executed successfully; false indicates that the DMX query task execution failed.