The information in this article applies to:
SYMPTOMSQueries that show as fully optimized in Microsoft Visual FoxPro might run very slowly through the Microsoft Visual FoxPro ODBC driver. CAUSEThe default for SET DELETED in the Visual FoxPro ODBC driver is "On," which reduces the optimization of most queries. The default in Visual FoxPro for SET DELETED is "Off." RESOLUTIONOne way to set the Deleted property to Off through the ODBC driver is shown in the code below. This setting is connection specific:
Here is a sample in Active Server Pages using ADO:
Another way to accomplish this is to configure the DSN. The DELETED setting is available on version 6.00.8428.00 or later of vfpodbc.dll. A version of the driver that supports this setting can be obtained by downloading the latest version of Microsoft Data Access Components from the Microsoft Web site at:
http://www.microsoft.com/data STATUSThis behavior is by design. MORE INFORMATIONBecause this setting is the opposite of the setting in Visual FoxPro, it can create instances where the records returned seem to be incorrect. REFERENCESFor more help on the SET DELETED command, please search for Set Deleted in the Visual FoxPro ODBC Help File. This file is DRVVFP.HLP in the Windows\System, or Windows\System32 directory or search for SET DELETED in Visual FoxPro Help. Additional query words:
Keywords : kbVFp600 kbODBC360 kbGrpFox kbDSupport |
Last Reviewed: November 24, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |