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 19

Quiz Answers

1: CommandBuilder will generate UPDATE and DELETE statements following which concurrency model?
  1. Pessimistic concurrency model

  2. Optimistic concurrency model

  3. Data update concurrency model

A1: b. The optimistic concurrency model, which means that other users can update data that has been selected by your application and your application must check for this before committing your updates.
2: True or false: Automatically generated commands will be created for all SelectCommands coded in Visual Basic or C#.
A2: False. You must explicitly activate this capability by using the CommandBuilder object.
3: What must be done following the change of a SELECT statement when using CommandBuilder to automatically generate code?
  1. Reassign SELECT variables ...

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