Microsoft KB Archive/108625

{| = PRB: Call to DBTables Returns Empty Cursor =
 * width="100%"|

ID: Q108625

The information in this article applies to:


 * Microsoft FoxPro for Windows, versions 2.5, 2.5a, and 2.5b
 * Microsoft FoxPro for MS-DOS, versions 2.5, 2.5a, and 2.5b
 * Microsoft FoxPro Connectivity Kit, version 2.5

SYMPTOMS
Calling the DBTables function with the Microsoft FoxPro Connectivity Kit returns an empty cursor despite the fact that several tables exist in the database on the server.

CAUSE
The second argument (table type) should be enclosed with both single and double quotation marks.

RESOLUTION
The following example shows how to use the DBTables function to retrieve information about the tables in the current database on the server. This example assumes that a valid connection to the server exists and that the variable mhandle contains the handle for this connection.

=DBTables(mhandle, "'TABLE'", "MyCursor") If more than one table type is specified, each type should be enclosed in single quotation marks and the entire string should be enclosed in double quotation marks as shown in the following example: =DBTables(mhandle, "'TABLE', 'VIEW'", "MyCursor")