dbgetQueryExecutionErrorCode (dbCONNECT)
Compatible with:
- Purpose
- This command is used to retrieve (read) the SQL Error code that corresponds to a failed SQL query that was executed by dbCONNECT.
- This command must be used usually immediately after a dbExecuteQuery and within the same dbBlock.
- Syntax
- dbgetQueryExecutionErrorCode(label,variable)
- Target
- Label assigned to the SQL Query (using the dbLabelQuery command)
- Value
- Name of a Variable (or User-Defined Variable), declared earlier within the test in progress into which you want the failed SQL Query statement's error code to be stored into.
- Return Value
- N/A
Example(s):
Click here to see the example