Workshop

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:When is a connection pool entry established?
  1. When you open a connection to the database

  2. When you fill a DataSet

  3. When you close a connection to the database

  4. When you read the rows from the DataSet

2:True or false: Connection pooling is automatically turned off for .NET.
3:What must you do every time in coding to make sure that you and others can take advantage of the connection pool in subsequent processing?
  1. Store it in cache

  2. Record the time it was used in a local variable

  3. Close the connection to the database

  4. Open a new connection to a different database

Get Sams Teach Yourself ADO.NET in 24 Hours now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.