O'Reilly logo

Sams Teach Yourself ADO.NET in 24 Hours by Paul Bertucci, Jason Lefebvre

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 7

Quiz Answers

1: What is the purpose of the ExecuteNonQuery() method of the Command object?
A1: The ExecuteNonQuery() object is used to execute commands against the data source that will not return any records. Therefore, it is ideal to use in situations where you want to modify or delete database data.
2: True or false: Using the ExecuteNonQuery() method to execute a query that returns data will result in an exception error being thrown from the data layer.
A2: False. If you execute a query using ExecuteNonQuery() that will return data, it will result in the data from your database query being lost, but no error will occur.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required