HOWTO: Use ODBC API SQLTables Function with Visual Basic and RDO (166284)
The information in this article applies to:
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
This article was previously published under Q166284 SUMMARY
Using the rdoTables collection is generally the best way to retrieve the
tables from an rdoConnection because the collection is built-in and
requires very little code.
If you want to take advantage of anything that the rdoTables collection
does not provide, you can use the ODBC API SQLTables function. For example,
SQLTables is a little faster at returning the table names; this can be
especially apparent with an Oracle database. Also, the SQLTables function
can return the table owner with each table. This article demonstrates each
method in code so you can chose which is best for your situation.
REFERENCES
In Visual Basic Books Online see:
Guide to Building Client Server Applications in Visual Basic (Enterprise)
Part 3: Data Access Options
Using the ODBC API
ODBC API Overview
Retrieving Information about ODBC Data Sources
(c) Microsoft Corporation 1997, All Rights Reserved.
Contributions by Jon Fowler, Microsoft Corporation
Modification Type: | Minor | Last Reviewed: | 3/2/2005 |
---|
Keywords: | kbhowto KB166284 |
---|
|