Article ID: 271483 - Last Review: October 31, 2003 - Revision: 2.0 PRB: Limitations of Using ADOX with Providers Other than Microsoft Jet OLE DB Provider
This article was previously published under Q271483 SYMPTOMS Microsoft ActiveX Data Objects Extensions for Data
Definition Language and Security (ADOX) is designed for use with the Microsoft
Jet Database Engine. So, using ADOX with OLE DB providers other than the
Microsoft Jet OLE DB Provider may cause unexpected behavior or incorrect
results. The exact behavior is dependent on the nature of the database for
which the provider is written. If a provider is accesses a database system
whose model is totally different from that of Jet, the behavior of ADOX could
be unpredictable (for example, Jet does not support the concepts of CATALOG or
SCHEMA). This article lists some of the known problems that may occur when you try to use ADOX with an OLE DB Provider other than the Microsoft Jet OLE DB Provider. MORE INFORMATION The following points are related to the ADOX
functionality: TABLES Collection ADOX calls the OpenSchema method with adSchemaTables and no restrictions. As a result, the TABLES collection includes all the tables accessible to the current user (as specified in the connection string) regardless of database catalogs and schemas. COLUMNS Collection ADOX calls the OpenSchema method with adSchemaColumns with just a table name as a restriction. As a result, the COLUMNS collection includes all the columns of all the tables that match the table name passed as a restriction, which are accessible to the current user regardless of database catalogs and schemas. Naming Convention The only naming convention ADOX supports is [object_name]. As a result, there is no way to differentiate objects with the same name that are in different schemas or catalogs. ADOX does not support the following naming conventions:
Note You must change the User ID=<username> value and the password =<strong password> value to the correct values before you run this code. Make sure that User ID has the appropriate permissions to perform this operation on the database.
The Count property may not include tables whose names are in mixed or lower
alphabetical case because ADOX does not provide a mechanism to specify
case-sensitivity. ADOX only passes the table name as it is to the provider. For
example, consider an Oracle table colTEST that was created with a mixed case
name. ADOX sends the table name as colTEST without enclosing it in double
quotes, which causes the provider to treat it as a case-insensitive
table. Result in this case: Column Count of 'COLTEST' = 4 REFERENCESFor additional information about ADOX, click
the article number below to view the article in the Microsoft Knowledge Base: 198534
(http://support.microsoft.com/kb/198534/EN-US/
)
INFO: ADOX Readme File Included with ADO 2.1 Components
272001
(http://support.microsoft.com/kb/272001/EN-US/
)
Attributes Property of ADOX Columns Collection May Cause Append Method to Fail
APPLIES TO
| Other Resources Other Support Sites
CommunityArticle Translations |






















Back to the top