GetSQLErrText

Description

Reports the database vendor’s error message for the most recent database operation.

Applies to

Web ActiveX Transaction Object control

Syntax

string transaction.GetSQLErrText( )

Returns

String. The text of the error message.

Usage

Call GetSQLCode to find out if an error occurred before calling GetDBCode and GetSQLErrText to get details about the error.

Examples

Example 1

This example checks whether an error occurred before getting the database vendor’s error code:

if (trans_1.GetSQLCode( ) == -1) {

		errnum = trans_1.GetDBCode( );

		errstring = trans_1.GetSQLErrText( );

}

See also