How To Return Multiple Results with HTTP ODBC/VFP ODBC DriverLast reviewed: July 11, 1996Article ID: Q152245 |
The information in this article applies to:
SUMMARYThis article describes how to make additions and modifications to Visual FoxPro ODBC driver Registry entries so it is possible to configure the driver not to return row count data from commands such as INSERT, UPDATE, and DELETE, that cause complications when executing multiple SQL commands in an .IDC file.
MORE INFORMATIONMultiple SQL commands can be placed within an .IDC file for execution and each command will get executed. However, when using HTTP ODBC, the .IDC file does not support multiple-result sets. This includes row sets that return a row count such as SQL commands INSERT, UPDATE, and DELETE. By design, HTTP ODBC only allows you to retrieve one result. Therefore, if the .IDC file contains multiple statements, only the first SQL statement will return a result. For example, if the SQL Statement was:
SQLStatement: +UPDATE customer SET contact_name="Joe" WHERE customer_id="ALFKI" ; SELECT contact_name FROM CUSTOMERthe UPDATE command would execute and return a row count and the SQL SELECT command would never return a result. By adding a registry entry, the Visual FoxPro ODBC driver will not ignore the values returned from commands such as UPDATE, INSERT, and DELETE, and only return values for the SQL Select command.
How to Make Registry EntriesWARNING: Be extremely careful when editing registry information. Mistakes could cause serious system problems.
SQLStatement: +UPDATE customer SET contact_name="Joe" WHERE customer_id="ALFKI" ; SELECT contact_name FROM CUSTOMERwill now execute and return the results of the SQL Select command.
|
Additional reference words: 1.00 VFoxWin
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |