Administering a SQL Database Infrastructure — Question 82

You administer a Microsoft SQL Server 2016 database.
Users report that an application that accesses the database displays an error, but the error does not provide meaningful information.
No entries are found in the SQL Server log or Windows event logs related to the error.
You need to identify the root cause of the issue by retrieving the error message.
What should you do?

Answer options

Correct answer: A

Explanation

The correct answer is A because creating an Extended Events session with the sqlserver.error_reported event allows for the capture of error messages as they occur, providing valuable insights into the issue. Option B, while useful for monitoring logs, may not specifically capture the error message related to the application issue. Options C and D do not address the need to retrieve the specific error message, making them less relevant for identifying the root cause.