Hour 7

for RuBoard

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.

for RuBoard


Sams Teach Yourself ADO. NET in 24 Hours
Sams Teach Yourself ADO.NET in 24 Hours
ISBN: 0672323834
EAN: 2147483647
Year: 2002
Pages: 237

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net