Your application uses the Microsoft .NET Framework Data Provider for SQL Server to access a Microsoft SQL Server database. You want to log all detailed information about database errors, including such information as line number and severity level.

What should you do?

 Posted by Rajkatie on 10/26/2012 | Category: ADO.NET Interview questions | Views: 2875 | Points: 40
Select from following answers:
  1. Catch exceptions of type SqlException. Iterate through the Errors collection and log each SqlError information.
  2. Add an event handler to the SqlConnection.InfoMessage event. Log messages that it receives.
  3. Catch exceptions of type SqlException. Log the InnerException exception Message property.
  4. All Above

Show Correct Answer

Source: | | Alert Moderator 

Comments or Responses

Login to post response