BUG: Queries to SQL Server Fail in Stand-alone Extended .EXEID: Q150979 2.60a MS-DOS
The information in this article applies to:
SYMPTOMSUsing the Connectivity Kit to query a SQL Server fails in FoxPro for an MS- DOS Stand-alone Extended .EXE file.
WORKAROUNDBuild and use a compact .EXE file instead.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.
MORE INFORMATIONThe FoxPro for MS-DOS Connectivity Kit allows users to connect and use tables on Microsoft SQL Server. If the application is compiled into a Stand- alone Extended .EXE file, the users can create a connection to the server in their application. However, DBEXEC() returns a -1 with no error message on any query that is sent to the SQL Server. Steps to Reproduce Problem 1. Create a new program called "testsql.prg." 2. Enter the following code in the program:
3. Save and run the program in FoxPro to ensure that it works.
4. Create a new project, and add the testsql.prg to it. (Make sure the 5. In Project Manager, select the Build button, and then choose Stand-alone
6. Exit FoxPro, and run the .EXE file you created from the MS-DOS prompt.
REFERENCESFor more information, please see the following article in the Microsoft Knowledge Base:
See the Users Guide for the Connectivity Kit for information on using the
individual commands.
Additional reference words: 2.60a FoxDos KBCategory: kbprg kbbuglist KBSubcategory: FxenvAutoexec
|
|
Last Reviewed: May 14, 1998 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |