You administer a Microsoft SQL Server 2012 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?
A.
Create an Extended Events session by using the sqlserver.error_reported event.
B.
Create a SQL Profiler session to capture all ErrorLog and EventLog events.
C.
Flag all stored procedures for recompilation by using sp_recompile.
D.
Execute sp_who.
Explanation:
Event sqlserver.error_reported: This event gets fired every time that an error happens in the server.
https://blogs.msdn.microsoft.com/extended_events/2010/04/14/introduction-to-extended-events/