May 2002
Beginner
408 pages
9h 10m
English
The Connection object is the way ADO.NET's built-in data providers connect to a data source. There are two Connection objects that ship with the ADO.NET: OleDbConnection and SqlConnection. As you might have guessed, the OleDbConnection object is used to create a connection to any valid OLE DB data source and the SqlConnection object is used to connect to Microsoft SQL Server versions 7.0 and up.
Just as in ADO, ADO.NET uses connection strings to connect to various data sources. The next section discusses connection string syntax and gives you several examples enabling you to connect to several types of databases.
A connection string is a semicolon-delimited set of name-value pairs that define ...
Read now
Unlock full access