Handling SQLEXEC Errors

There are two types of error conditions to consider when implementing SQLEXEC: