SQL ERROR STATE

SQL ERROR STATE is one of the SQL System Function which returns the state of the error (if occurred). This SQL ERROR STATE function works within the scope of a CATCH block. If you call this function outside the CATCH block, it will return NULL. For example, we write a series of statements inside the TRY block. … Read more