Hour 5

for RuBoard

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.

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