sc_error_insert

This variable returns a string with the database error, that occurs when adding a record. It is used when is neede to treat these messages. For example, in case of database validations via triggers or procedures that return message.

Ex. 1: Variable {sc_erro_insert}, returning an error message generated by database trigger the using mssql

“[Microsoft] [ODBC SQL Server Driver] [SQL Server] You can't add this register.”

Note: To access the return of the database error, see the macro "sc_error_continue".