FAQ: ActiveX Data Objects (ADO) Frequently Asked QuestionsID: Q183606
|
This article presents some frequently asked questions about programming ActiveX Data Objects (ADO).
Q. What are the ActiveX Data Objects (ADO)?
A. ActiveX Data Objects are a language-neutral object model that expose
data raised by an underlying OLE DB Provider. The most commonly used OLE
DB Provider is the OLE DB Provider for ODBC Drivers, which exposes ODBC
Data sources to ADO.
Q. Where can I get ActiveX Data Objects?
A. ADO is part of the Microsoft Data Access Components (MDAC). ADO can be
obtained from the Free Downloads page on this Web site:
http://www.microsoft.com /data/download.htmQ. Where is the documentation that comes with ADO?
ARTICLE-ID: Q174565 FILE: Adovc.exe Demonstrates Using ADO with Visual C++In addition, the following articles can be found when searching using Visual C++ as the product that will prove useful to ADO developers:
ARTICLE-ID: Q173645 BUG: Access Violation in Msdaer.dll with _com_error Exceptions
ARTICLE-ID: Q166112 PRB: Conflict with EOF When Using #import with ADO
ARTICLE-ID: Q169496 INFO: Using ActiveX Data Objects (ADO) via #import in VC++
ARTICLE-ID: Q168354 INFO: Underlying OLE and OLE DB Provider Errors Exposed via ADO
ARTICLE-ID: Q172392 INFO: Programmer's Guide to Using ADO in Visual C++Q. How do I find Microsoft Knowledge Base (KB) articles for ADO?
ARTICLE-ID: Q167802 SAMPLE: EXCEPTEX Traps MFC and Win32 Exceptions
ARTICLE-ID: Q175784 INFO: Replacing #import's Exception Raising Mechanism
http://support.microsoft.com/ support/
If you have not been to this site before, you will need to register
(once) to proceed. After completing registration, select "Support
Online" to query the entire Microsoft Knowledge Base. Select "ActiveX
Data Objects", and then enter in the article Q-number (if you know the
number), appropriate keywords, or text that will help you find the
article.
Q. How do I determine ADO's capabilities?
A more in-depth approach involves analyzing the underlying data provider
you are using underneath ADO. The most common provider is the OLE DB
Provider for ODBC Drivers that exposes ODBC Data sources to ADO. You can
use the Properties collection(s) for the Connection, Command, Recordset,
and Field objects and compare the results displayed there to the OLE DB
Specification and the OLE DB Leveling Document, both included with the
OLE DB SDK, available free for download at this URL:
http://www.microsoft.com/data/ oledb/Note that ADO will not automatically define each value for each property exposed in the collections. The property will only be set when the operation you are performing with ADO actually needs to use that property exposed by the underlying provider. This is for performance, and varies from other object models such as DAO which initialize any and all properties whether the operation you are performing utilizes them or not.
Using the Recordset.Supports property is the easiest way to verify that
what you expect is actually what the provider exposed to you, given the
specific type of connection and recordset you have opened.
Additional query words: kbinf
Keywords : kbnokeyword kbADO kbDatabase kbGenInfo kbMDAC200
Version : WINDOWS:1.0,1.5,2.0
Platform : WINDOWS
Issue type : kbinfo
Last Reviewed: April 22, 1999