How to Force SELECT-SQL to Create Temp File for CursorID: Q109584 2.50 2.50a 2.50b 3.00| 2.50 2.50a 2.50b
The information in this article applies to:
SUMMARYWhen the INTO CURSOR clause of the SELECT-SQL command is used to direct output to a cursor, this cursor can take one of two forms. It can be a cursor that has its own temporary file on the disk, or it can be a filtered subset of the table that the SELECT-SQL statement was based on. A cursor can be created as a filtered view of the original table if:
The existence of a cursor on the hard disk provides the following benefits:
MORE INFORMATIONYou can force the creation of a cursor within an SELECT-SQL statement in FoxPro. To do this, use the SELECT statement to select column expressions in the field list that do not exist in the database. In a multiple-table SELECT statement, this is accomplished when fields from both tables are selected. Since the field list does not match a table directly, FoxPro will not create a mask of the database but instead will create a temporary file on disk. If only one table exists, or if you do not want to select fields from more than one .DBF file, use the following code.
To verify the existence of a temporary file for a cursor, issue the
following command:
Additional reference words: VFoxWin 3.00 FoxDos FoxWin 2.50 2.50a 2.50b
index on cursor
KBCategory:
KBSubcategory: FxprgSql
|
|
Last Reviewed: May 22, 1998 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |