nerdexam
Microsoft

70-518 · Question #84

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 B. 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 by creating a handler for the InfoMessage event.
  • CRetrieve informational messages and error messages by creating a handler for the
  • DRetrieve informational messages and error messages in a SqlException object.

How the community answered

(21 responses)
  • A
    10% (2)
  • B
    81% (17)
  • C
    5% (1)
  • D
    5% (1)

Community Discussion

No community discussion yet for this question.

Full 70-518 Practice