Reads changes from a change file (*.CHG) on the target database into memory. This function is designed to be used interactively with EsbPartitionApplyOtlChangeRecs() after a call to EsbPartitionGetOtlChanges(). This function can be used with filters.
Syntax
EsbPartitionReadOtlChangeFile (hCtx, pszChgFileName, QueryFilter, MetaChangeReadHandle, SourceTime) ByVal hCtx As Long ByVal pszChgFileName As String ByRef QueryFilter As ESB_PARTOTL_QRY_FILTER_T ByRef MetaChangeReadHandle As Long ByRef SourceTime As Long
Parameter | Description |
---|---|
hCtx | API context handle. |
pszChgFileName | The name of the metadata change file. |
QueryFilter | The query filter expression. |
MetaChangeReadHandle | Handle for the metadata change file. |
SourceTime | The time of the latest change to the metadata file. |
Notes
This routine returns a time in pMetaChangeRead. This is the same time stamp you should pass to EsbPartitionApplyOtlChangeRecs to update the timestamp at the target database.
Return Value
Returns zero if successful; error code if unsuccessful.
Access
A call to this function requires Database Manager access privileges.
See Also