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)- A14% (4)
- B3% (1)
- C7% (2)
- D76% (22)
Community Discussion
No community discussion yet for this question.