The BatchCompleteFunctionEntry property specifies or returns the name of the script function that is to be called for the OnBatchComplete transformation phase.
object.BatchCompleteFunctionEntry [= name]
Part | Description |
---|---|
object | Expression that evaluates to a DTSTransformScriptProperties2 object |
name | Name of the script function that supports the OnBatchComplete phase |
String
Read/write
HRESULT BatchCompleteFunctionEntry(BSTR* pRetVal);
HRESULT BatchCompleteFunctionEntry(BSTR pRetVal);
The OnBatchComplete phase is available only in the DataPumpTask2 object, not in the DataDrivenQueryTask2 or ParallelDataPumpTask objects. The transform is called on success or failure of the batch.
The OnBatchComplete script function has no access to the columns of the DTSSource and DTSDestination collections. The only valid return values are DTSTransformStat_OK and DTSTransformStat_AbortPump.
The property also can be referenced through the TransformServerProperties collection with the following code:
Set transprops = transform.TransformServerProperties
transprops("BatchCompleteFunctionEntry") [= string]
InsertFailureFunctionEntry Property
InsertSuccessFunctionEntry Property
PostSourceDataFunctionEntry Property
PreSourceDataFunctionEntry Property