1.

Which of the following is an Error function used within CATCH block?(a) ERROR_STATE()(b) ERROR_STATUS()(c) ERROR_MSG()(d) All of the mentionedThis question was addressed to me in an interview.Origin of the question is Error Handling topic in chapter Developing with SQL Server of SQL Server

Answer»

The CORRECT OPTION is (a) ERROR_STATE()

Easy explanation: ERROR_STATE() RETURNS the state number of the ERROR.



Discussion

No Comment Found

Related InterviewSolutions