Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

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)

bool ExecuteQuery(
	Connections connections,
	VariableDispenser variables,
	IDTSComponentEvents events,
	IDTSLogging log,
	Object txn
)

Parameters

connections
Type: Microsoft.SqlServer.Dts.Runtime.Connections
A collection of connections used by the task.
variables
Type: Microsoft.SqlServer.Dts.Runtime.VariableDispenser
A VariableDispenser object for locking variables.
events
Type: Microsoft.SqlServer.Dts.Runtime.IDTSComponentEvents
An object that implements the IDTSComponentEvents interface.
log
Type: Microsoft.SqlServer.Dts.Runtime.IDTSLogging
An object that implements the IDTSLogging interface.
txn
Type: Object
The transaction objects that the container is a part of. This value can be null.

Return Value

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

Community Additions

Show:
© 2015 Microsoft