nerdexam
Microsoft

70-518 · Question #195

You are designing a Windows Forms application. The application connects to a Microsoft SQL Server 2008 database. You need to recommend an approach for retrieving and logging all informational…

The correct answer is C. Retrieve informational messages by creating a handler for the InfoMessage event. See the full explanation below for the reasoning.

Question

You are designing a Windows Forms application. The application connects to a Microsoft SQL Server 2008 database. You need to recommend an approach for retrieving and logging all informational messages and error messages reported by the database. What should you recommend?

Options

  • ARetrieve informational messages in a SqlException object.
  • BRetrieve informational messages and error messages in a SqlException object.
  • CRetrieve informational messages by creating a handler for the InfoMessage event.
  • DRetrieve informational messages and error messages by creating a handler for the

How the community answered

(41 responses)
  • A
    17% (7)
  • B
    5% (2)
  • C
    71% (29)
  • D
    7% (3)

Community Discussion

No community discussion yet for this question.

Full 70-518 Practice