다음을 통해 공유


IDMQueryTask.ExecuteQuery 메서드

이 API는 SQL Server 2012 인프라를 지원하기 위한 것으로 코드에서 직접 사용할 수 없습니다.

Executes the query found in the QueryString property.

네임스페이스:  Microsoft.SqlServer.Dts.Tasks.DMQueryTask
어셈블리:  Microsoft.SqlServer.DMQueryTask(Microsoft.SqlServer.DMQueryTask.dll)

구문

‘선언
Function ExecuteQuery ( _
    connections As Connections, _
    variables As VariableDispenser, _
    events As IDTSComponentEvents, _
    log As IDTSLogging, _
    txn As Object _
) As Boolean
‘사용 방법
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

매개 변수

  • txn
    유형: System.Object
    The transaction objects that the container is a part of. This value can be nullnull 참조(Visual Basic에서는 Nothing).

반환 값

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

참고 항목

참조

IDMQueryTask 인터페이스

Microsoft.SqlServer.Dts.Tasks.DMQueryTask 네임스페이스