Errors and Batches
In the first two cases, SQLExecute and SQLExecDirect return SQL_ERROR. In the latter two cases, they may return
SQL_SUCCESS_WITH_INFO or SQL_SUCCESS, depending on the implementation. In all cases, further
error information can be retrieved with SQLGetDiagField, SQLGetDiagRec, or SQLError. However, the nature and depth of this information is data source
No statements in the batch are executed.
No statements in the batch are executed and the transaction is rolled back.
All of the statements before the error statement are executed.
All of the statements except the error statement are executed.