O'Reilly logo

Sams Teach Yourself ADO.NET in 24 Hours by Paul Bertucci, Jason Lefebvre

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Hour 13

Quiz Answers

1: What is the Catch block used for?
  1. Processing error conditions

  2. Else processing

  3. Common processing

A1: a. Processing error conditions from a Try block. Any exception in the Try block will transfer control to the Catch block for determination.
2: True or false: ADO.NET cannot tell you if you have any errors indicated in a DataSet.
A2: False. If utilized, this capability can retain errors on each row in the dataset.
3: True or false: Always close a connection in the Finally block.
A3: True. In general, it is good practice to close a connection. Doing so in a Finally block is good practice if the open connection was in the corresponding Try block.
4: You can set errors in a DataSet at what level?
  1. DataTable level

  2. DataRow level

  3. Column level ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required