|
Data Port Command reports error or status values using the standard process return value. There are two kinds of values that can be returned from Data Port Command: preprocessing errors and OLE DB errors (or statuses).
Other than these, OLE DB error or status messages can be reported. OLE DB errors are large negative numbers, where statuses will be large positive ones. Note that Data Port Command may terminate with a status number such as DB_S_ERRORSOCCURRED (0x00040EDA in Hex or 265946 in decimal) and still be successful. This situation is typical when importing into Access tables that have AutoNumber columns. The correct data is written, but Access complains that a value was written to an auto-generated column that should be read-only. The following table shows the most likely OLE DB error codes. To see a full list of error codes, please refer to the oledberr.h file distributed with the Windows SDK.
Support / Knowledge Base / Data Port Command / Data Port Command Error Codes |
