Share via


IDMQueryTask.ExecuteQuery Method

This API supports the SQL Server 2012 infrastructure and is not intended to be used directly from your code.

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
Function ExecuteQuery ( _
    connections As Connections, _
    variables As VariableDispenser, _
    events As IDTSComponentEvents, _
    log As IDTSLogging, _
    txn As Object _
) As Boolean
'Usage
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

Parameters

  • txn
    Type: System.Object
    The transaction objects that the container is a part of. This value can be nulla null reference (Nothing in Visual Basic).

Return Value

Type: System.Boolean
true indicates that the DMX query task executed successfully; false indicates that the DMX query task execution failed.

See Also

Reference

IDMQueryTask Interface

Microsoft.SqlServer.Dts.Tasks.DMQueryTask Namespace