PRB: Errors When Referencing Oracle Synonym or Table Names (115713)
The information in this article applies to:
- Microsoft Visual Basic Professional Edition for Windows 3.0
This article was previously published under Q115713 SYMPTOMS
The following two errors may occur when you use the CreateDynaset
command against an Oracle database: - Error 3024: Couldn't find file <ownername>.mdb
This error occurs when the Microsoft Access database engine's SQL parser
in Visual Basic version 3.0 cannot handle the Oracle-style reference
of <ownername>.<tablename or synonym> within an SQL statement:
Set DS = DB.CreateDynaset("Select * From <ownername>.<tablename>")
- Error 3078: Couldn't find input table or query <ownername>.<tablename>
This error occurs when only a table name is provided and duplicate
tables exist or synonyms with different owners exist. In this case, the
Microsoft Access database engine resolves the ambiguous reference by
picking one of the duplicate table name owners based on alphabetical
order:
Set DS = DB.CreateDynaset("Select * From ,<tablename>")
RESOLUTION
Use the following techniques to prevent the error messages: - Use DB_SQLPASSTHROUGH when creating the Dynaset.
- Attach the Oracle table to a Microsoft Access database.
- Remove all duplicate tables and synonyms from the Oracle database.
Please see the More Information section below for details.
STATUS
The Microsoft Access database engine is not currently designed to
handle Oracle-style references. The current design is under review
and may be modified in future versions of the database engine.
Modification Type: | Minor | Last Reviewed: | 1/8/2003 |
---|
Keywords: | kbprb KB115713 |
---|
|