Reports the database vendor’s error code when the most recent database operation resulted in an error.
Web ActiveX Transaction Object control
number transaction.GetDBCode( )
A number whose meaning is defined by the database vendor.
Call GetSQLCode to find out if an error occurred before calling GetDBCode to get details about the error.
This example checks whether an error occurred before getting the database vendor’s error code:
if (trans_1.GetSQLCode( ) == -1) {
errnum = trans_1.GetDBCode( );
}