共用方式為


DMQueryTask.ExecuteQuery Method

Executes the query found in the QueryString property.

命名空間: Microsoft.SqlServer.Dts.Tasks.DMQueryTask
組件: Microsoft.SqlServer.DMQueryTask (in microsoft.sqlserver.dmquerytask.dll)

語法

'宣告
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

參數

  • 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.

傳回值

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

執行緒安全性

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.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

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