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:

What is the Catch block used for?

  1. Processing error conditions

  2. Else processing

  3. Common processing

2:

True or false: ADO.NET cannot tell you if you have any errors indicated in a DataSet .

3:

True or false: Always close a connection in the Finally block.

4:

You can set errors in a DataSet at what level?

  1. DataTable level

  2. DataRow level

  3. Column level

  4. Data type level

5:

True or false: There is no way to pass DataRow error indications to other XML consumers or Web services.

6:

What is the most commonly used DataAdapter event?

  1. FillError event

  2. DataUpdated event

  3. RowUpdated event

  4. RowUpdating event

Exercise

For the Windows Forms application that we developed in this chapter, add a new button to the form that will perform a validation for any NULL phone number columns . Name the button "NO PHONE". It's best to go back and follow the same type of addition that we did for the Validate button with ContactTitles.

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