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 must be maintained when using the pessimistic concurrency approach?

  1. Locks on data resources

  2. Database connections

  3. Events

2:

In general, how is optimistic concurrency implemented?

  1. Compare original values to current values in the data source

  2. Identify key changes, then commit updates

  3. Delete old values, then insert new values

3:

True or false: Pessimistic concurrency is designed for fast, scalable applications in .NET.

4:

What should be used when using the optimistic concurrency approach and XML?

  1. Blocks

  2. Tags

  3. DiffGrams

Exercise

From the optimistic concurrency code samples, modify 14optcon.vb to utilize the DataAdapter.RowUpdated handler. When completed, this can serve as a template for all of your coding.

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