nerdexam
Microsoft

70-516 · Question #121

You want to execute a SQL insert statement from your client application, so you set the CommandText property of the command object and open the connection. Which method will you execute on the…

The correct answer is D. ExecuteNonQuery. See the full explanation below for the reasoning.

Question

You want to execute a SQL insert statement from your client application, so you set the CommandText property of the command object and open the connection. Which method will you execute on the command?

Options

  • AExecuteScalar
  • BExecuteXmlReader
  • CExecuteReader
  • DExecuteNonQuery

How the community answered

(29 responses)
  • A
    14% (4)
  • B
    3% (1)
  • C
    7% (2)
  • D
    76% (22)

Community Discussion

No community discussion yet for this question.

Full 70-516 Practice