Share via


DMQueryTask.ExecuteQuery Method

Executes the query found in the QueryString property.

Namespace: Microsoft.SqlServer.Dts.Tasks.DMQueryTask
Assembly: Microsoft.SqlServer.DMQueryTask (in microsoft.sqlserver.dmquerytask.dll)

Syntax

'Declaration
Public Function ExecuteQuery ( _
    connections As Connections, _
    variablesDispenser As VariableDispenser, _
    events As IDTSComponentEvents, _
    log As IDTSLogging, _
    txn As Object _
) As Boolean
public bool ExecuteQuery (
    Connections connections,
    VariableDispenser variablesDispenser,
    IDTSComponentEvents events,
    IDTSLogging log,
    Object txn
)
public:
virtual bool ExecuteQuery (
    Connections^ connections, 
    VariableDispenser^ variablesDispenser, 
    IDTSComponentEvents^ events, 
    IDTSLogging^ log, 
    Object^ txn
) sealed
public final boolean ExecuteQuery (
    Connections connections, 
    VariableDispenser variablesDispenser, 
    IDTSComponentEvents events, 
    IDTSLogging log, 
    Object txn
)
public final function ExecuteQuery (
    connections : Connections, 
    variablesDispenser : VariableDispenser, 
    events : IDTSComponentEvents, 
    log : IDTSLogging, 
    txn : Object
) : boolean

Parameters

  • connections
    A collection of connections used by the task.
  • log
    An object that implements the IDTSComponentEvents interface.
  • txn
    The transaction object that the container is a part of. This value can be null.

Return Value

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

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

See Also

Reference

DMQueryTask Class
DMQueryTask Members
Microsoft.SqlServer.Dts.Tasks.DMQueryTask Namespace