Partilhar via


Método ExecuteQuery

Executes the query found in the QueryString property.

Namespace:  Microsoft.SqlServer.Dts.Tasks.DMQueryTask
Assembly:  Microsoft.SqlServer.DMQueryTask (em Microsoft.SqlServer.DMQueryTask.dll)

Sintaxe

'Declaração
Public Function ExecuteQuery ( _
    connections As Connections, _
    variablesDispenser As VariableDispenser, _
    events As IDTSComponentEvents, _
    log As IDTSLogging, _
    txn As Object _
) As Boolean
'Uso
Dim instance As DMQueryTask
Dim connections As Connections
Dim variablesDispenser As VariableDispenser
Dim events As IDTSComponentEvents
Dim log As IDTSLogging
Dim txn As Object
Dim returnValue As Boolean

returnValue = instance.ExecuteQuery(connections, _
    variablesDispenser, events, log, _
    txn)
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
abstract ExecuteQuery : 
        connections:Connections * 
        variablesDispenser:VariableDispenser * 
        events:IDTSComponentEvents * 
        log:IDTSLogging * 
        txn:Object -> bool 
override ExecuteQuery : 
        connections:Connections * 
        variablesDispenser:VariableDispenser * 
        events:IDTSComponentEvents * 
        log:IDTSLogging * 
        txn:Object -> bool 
public final function ExecuteQuery(
    connections : Connections, 
    variablesDispenser : VariableDispenser, 
    events : IDTSComponentEvents, 
    log : IDTSLogging, 
    txn : Object
) : boolean

Parâmetros

  • txn
    Tipo: System. . :: . .Object
    The transaction object that the container is a part of. This value can be nullNothingnullptrunituma referência nula (Nothing no Visual Basic).

Valor de retorno

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

Implementa

IDMQueryTask. . :: . .ExecuteQuery(Connections, VariableDispenser, IDTSComponentEvents, IDTSLogging, Object)