Share via


DMQueryTask.ExecuteQuery Method

Definition

Executes the query found in the QueryString property.

public:
 virtual bool ExecuteQuery(Microsoft::SqlServer::Dts::Runtime::Connections ^ connections, Microsoft::SqlServer::Dts::Runtime::VariableDispenser ^ variablesDispenser, Microsoft::SqlServer::Dts::Runtime::IDTSComponentEvents ^ events, Microsoft::SqlServer::Dts::Runtime::IDTSLogging ^ log, System::Object ^ txn);
public bool ExecuteQuery (Microsoft.SqlServer.Dts.Runtime.Connections connections, Microsoft.SqlServer.Dts.Runtime.VariableDispenser variablesDispenser, Microsoft.SqlServer.Dts.Runtime.IDTSComponentEvents events, Microsoft.SqlServer.Dts.Runtime.IDTSLogging log, object txn);
abstract member ExecuteQuery : Microsoft.SqlServer.Dts.Runtime.Connections * Microsoft.SqlServer.Dts.Runtime.VariableDispenser * Microsoft.SqlServer.Dts.Runtime.IDTSComponentEvents * Microsoft.SqlServer.Dts.Runtime.IDTSLogging * obj -> bool
override this.ExecuteQuery : Microsoft.SqlServer.Dts.Runtime.Connections * Microsoft.SqlServer.Dts.Runtime.VariableDispenser * Microsoft.SqlServer.Dts.Runtime.IDTSComponentEvents * Microsoft.SqlServer.Dts.Runtime.IDTSLogging * obj -> bool
Public Function ExecuteQuery (connections As Connections, variablesDispenser As VariableDispenser, events As IDTSComponentEvents, log As IDTSLogging, txn As Object) As Boolean

Parameters

connections
Connections

A collection of connections used by the task.

variablesDispenser
VariableDispenser

A VariableDispenser object for locking variables.

events
IDTSComponentEvents

An object that implements the IDTSComponentEvents interface.

log
IDTSLogging

An object that implements the IDTSLogging interface.

txn
Object

The transaction object that the container is a part of. This value can be null.

Returns

true indicates that the DMX query task executed successfully; false indicates that the DMX query task execution failed.

Implements

Applies to