The DestinationSQLStatement property specifies an SQL statement to execute at the data destination.
DataDrivenQueryTask Object | DataPumpTask Object |
object.DestinationSQLStatement [= value]
Part | Description |
---|---|
object | Expression that evaluates to an object in the Applies To list |
value | SQL statement to execute |
A DataPumpTask object uses the DestinationSQLStatement property to open a simple rowset on the named destination object (for example, a table or view) if no destination SQL statement is specified. The rowset must support INSERT on the results of a query. A DataDrivenQueryTask object uses the DestinationSQLStatement property to retrieve metadata only, and then immediately closes the rowset.
String
Read/write
HRESULT GetDestinationSQLStatement(BSTR *pRetVal);
HRESULT SetDestinationSQLStatement(BSTR NewValue);