Hour 6

for RuBoard

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 order to retrieve data from Microsoft SQL Server using OLE DB drivers.

A3:

False. You can't mix objects from one managed provider with another to retrieve data.

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