Choosing a Data Provider
As of this writing, Microsoft supplies ten OLE DB providers with ADO. These providers are listed in Table 4-2. Other companies supply their own OLE DB providers. In this book, I will focus on the OLE DB provider for ODBC drivers and the OLE DB providers for SQL Server and Microsoft Access.
Table 4-2. Available Microsoft OLE DB Providers
|
Provider |
Value |
|---|---|
|
Microsoft OLE DB provider for ODBC |
MSDASQL.1 |
|
Microsoft OLE DB provider for Microsoft Indexing Service |
MSIDXS |
|
Microsoft OLE DB provider for Microsoft Active Directory Service |
ADSDSOObject |
|
Microsoft OLE DB provider for Microsoft Jet |
Microsoft.Jet.OLEDB.4.0 |
|
Microsoft OLE DB provider for SQL Server |
SQLOLEDB |
|
Microsoft OLE DB provider for Oracle |
MSDAORA |
|
Microsoft OLE DB provider for Internet Publishing |
MSDAIPP.DSO |
|
Microsoft Data Shaping Service for OLE DB (ADO Service Provider) |
MSDataShape |
|
Microsoft OLE DB Persistence Provider (ADO Service Provider) |
MSPersist |
|
Microsoft OLE DB Remoting Provider (ADO Service Provider) |
MS Remote |
The OLE DB provider for ODBC, supplied by Microsoft, is probably the most popular type of data source used today and is the default data provider of ADO. In other words, if you do not specify a data provider before opening a connection, ADO will assume you wish to use the ODBC OLE DB data provider. The ODBC OLE DB provider allows ADO to access any data source that has an ODBC-compliant driver, including, among others, flat files, Microsoft SQL Server, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access