Share via


IDMQueryTask.ExecuteQuery Method

Definition

Executes the query found in the QueryString property.

public:
 bool ExecuteQuery(Microsoft::SqlServer::Dts::Runtime::Connections ^ connections, Microsoft::SqlServer::Dts::Runtime::VariableDispenser ^ variables, 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 variables, 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
Public Function ExecuteQuery (connections As Connections, variables As VariableDispenser, events As IDTSComponentEvents, log As IDTSLogging, txn As Object) As Boolean

Parameters

connections
Connections

A collection of connections used by the task.

variables
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 objects 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.

Applies to