The ValidateSchema method validates the schema to be transformed.
HRESULT ValidateSchema (
LPBYTE pvTransformServerData,
LPCDTSTransformColumnInfo pSrcColumnInfo,
LPCDTSTransformColumnInfo pDestColumnInfo,
IDTSDataConvert *pIDTSDataConvert,
DTSTransformFlags eTransformFlags );
Argument | Description |
---|---|
pvTransformServerData [in] | Transform server state data |
pSrcColumnInfo [in/out] | Source column and row data |
pDestColumnInfo [in/out] | Destination column and row data |
*pIDTSDataConvert [in] | Pointer to the data conversion interface |
eTransformFlags [in] | Input flags for transformation validation and execution |
ValidateSchema is passed as a pointer to source and destination bindings and column information. The COM server can then validate data types, preventing spurious row transfers if the types are incompatible. If the COM server does not validate at this time (for example, due to a complex conversion performed on the row data), then it simply returns NOERROR. A validation failure should return an appropriate failure code, such as DB_E_SCHEMAVIOLATION, or one defined by the transformation server because the data pump cannot proceed. The pointer to the IDTSDataConvert interface is passed in to allow the destination to verify that conversion between the source and destination data types is possible and to indicate any special conditions that may be encountered.