Workshop

for RuBoard

These quiz questions are designed to test your knowledge of the material covered in this chapter. The answers to the quiz questions can be found in Appendix A, "Answers to Quizzes."

Quiz

1:

Which method of the DataAdapter object is used to place the records returned from a query into a DataSet ?

2:

What steps must you perform before being able to use a Command object to retrieve data from a data source?

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.

Exercise

Use the Class Browser application to examine the constructors of the DataAdapter object. See if you can simplify the code in this chapter even more by using different ways of instantiating the DataAdapter . Hint: If you pass a query as the first argument, the DataAdapter will implicitly create a Command object. Also practice executing various queries against your data source and viewing the results in a Web form.

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