Hour 6

Quiz Answer

1: Which method of the DataAdapter object is used to place the records returned from a query into a DataSet?
A1: The Fill() method of the DataAdapter object is used to place query results into a DataSet.
2: What steps must you perform before being able to use a Command object to retrieve data from a data source?
A2: First, you must create an instance of the Connection object and properly configure it. Then you must associate this connection with the Command object. One way of doing this is to set the Connection object to the Connection property of the Command object. Then, after you open your connection, you can execute your query and retrieve the results.
3: True or False: You should use an OleDbConnection with a SqlCommand in ...

Get Sams Teach Yourself ADO.NET in 24 Hours now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.