Select from following answers:- Catch exceptions of type SqlException. Iterate through the Errors collection and log each SqlError information.

- Add an event handler to the SqlConnection.InfoMessage event. Log messages that it receives.
- Catch exceptions of type SqlException. Log the InnerException exception Message property.
- All Above
The Errors collection contains SqlErrors that give detailed information about all database errors.
Logging the SqlException inner exception does not return detailed information.
Show Correct Answer
Source: Measureup.com | |
Alert Moderator