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 5

Quiz Answers

1: Describe the difference between the SqlConnection and OleDbConnection objects.
A1: The SqlConnection object is used to connect to Microsoft SQL Server version 7.0 and higher using a managed provider that “talks” directly to SQL Server. The OleDbConnection object connects to OLE DB sources.
2: True or false: If you do not call the Close() method of the Connection object, the connection to the database will be automatically closed before the object is destroyed by the garbage collector.
A2: False. Connections to the database are not automatically closed.

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