The SQL function "ERROR_MESSAGE()" returns the ____________ error message text.

  • Last occurred
  • First occurred
  • Most recent
  • Least recent
The correct option is "First occurred." The ERROR_MESSAGE() function in SQL returns the first error message text that was encountered during the execution of the last Transact-SQL statement. This can help in identifying the root cause of errors.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *