ACC: How to Query an ORACLE Table Without Attaching It This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
This article was previously published under Q109824 SUMMARY
Advanced: Requires expert coding, interoperability, and multiuser skills.
This article describes how to use the SQL IN clause to query an ORACLE database without linking (attaching) it. In Microsoft Access, this can be accomplished more easily by using a SQL pass-through query. See the "References" section of this article for a reference to this method. MORE INFORMATION
You can use the IN clause to query only one external database at a time.
The IN clause requires two arguments: database name and connect string.
When you attach ORACLE tables, specify an empty string for the database
name.
The connect string consists of the following items:
NOTE: In the following sample connect string, an underscore (_) is used as a line-continuation character. Remove the underscore when re-creating this connect string. ODBC;DSN=DataSourceName;Database=x:SrvrName;WSID=Wrk1;USID=JaneDoe;_ PWD=ABC123 The following example demonstrates how to use the SQL IN clause in a query to query an ORACLE database without attaching it. Note that this example assumes that the ODBC Driver Manager and ORACLE ODBC driver is installed, that a data source called Corp was set up using the ODBC Driver Manager, and that the table called Employees on the server called Payroll can be successfully attached using the Attach command on the File menu:
REFERENCES
For more information on the SQL IN clause, search for "In Clause"
using the Microsoft Access for Windows 95 Help Index.
Microsoft Access "User's Guide," version 2.0, pages 273 and 276 Microsoft Access "Language Reference," version 1.1, Appendix B, "Microsoft Access SQL," page 513 APPLIES TO
| Article Translations
|


Back to the top
