Monday, June 28, 2004
Choosing a NET Framework Data Provider
Choosing a .NET Framework Data Provider
Depending on the design and data source for your application, your
choice of .NET Framework data provider can improve the performance,
capability, and integrity of your application. The following message
discusses the advantages and limitations of each NET Framework data
provider.
1. .NET Framework Data Provider for SQL Server
Recommended for middle-tier applications using Microsoft SQL Server 7.0 or later.
Recommended for single-tier applications using Microsoft Data Engine (MSDE) or Microsoft SQL Server 7.0 or later.
Recommended over use of the OLE DB Provider for SQL Server (SQLOLEDB) with the .NET Framework Data Provider for OLE DB.
For Microsoft SQL Server version 6.5 and earlier, you must use the
OLE DB Provider for SQL Server with the .NET Framework Data Provider
for OLE DB.
2. .NET Framework Data Provider for OLE DB
Recommended for middle-tier applications using Microsoft SQL Server
6.5 or earlier, or any OLE DB provider that supports the OLE DB
interfaces listed in OLE DB Interfaces Used
by the .NET Framework Data Provider for OLE DB
<cpconoledbinterfacessupportedbyoledbnetdataprovider.htm> (OLE DB 2.5 interfaces are not required).For Microsoft SQL Server 7.0 or later, the .NET Framework Data Provider for SQL Server is recommended.
Recommended for single-tier applications using Microsoft Access
databases. Use of a Microsoft Access database for a middle-tier
application is not recommended.
3. .NET Framework Data Provider for ODBC
Recommended for middle-tier applications using ODBC data sources.
Recommended for single-tier applications using ODBC data sources.
<DIR>Note The .NET Framework Data Provider for ODBC is not included in
the NET Framework version 1.0. If you require the .NET Framework Data
Provider for ODBC and are using the .NET Framework version 1.0, you can
download the .NET Framework Data Provider for ODBC at
http://msdn.microsoft.com/downloads. The namespace for the downloaded
NET Framework Data Provider for ODBC is Microsoft.Data.Odbc.</DIR>
4..NET Framework Data Provider for Oracle
Recommended for middle-tier applications using Oracle data sources.
Recommended for single-tier applications using Oracle data sources.
Supports Oracle client software version 8.1.7 and later.
The .NET Framework Data Provider for Oracle classes are located in the System.Data.OracleClient namespace and are contained in the System.Data.OracleClient.dll assembly. You need to reference both the System.Data.dll and the System.Data.OracleClient.dll when compiling an application that uses the data provider.
<DIR>Note The .NET Framework Data Provider for Oracle is not included in
the .NET Framework version 1.0. If you require the .NET Framework Data
Provider for Oracle and are using the .NET Framework version 1.0, you
can download the .NET Framework Data Provider for Oracle at
http://msdn.microsoft.com/downloads.
Regards
Mitesh Mehta