Reports a code indicating the success or failure of the most recent database operation.
Web ActiveX Transaction Object control
number transaction.GetSQLCode( )
Number. Possible values are:
0 – Success
100 – Not found
-1 – Error
When GetSQLCode reports an error, call GetDBCode to get the vendor’s error code.
This example checks whether an error occurred before getting the database vendor’s error code:
if (trans_1.GetSQLCode( ) == -1) {
errnum = trans_1.GetDBCode( );
}