The information in this article applies to:
SUMMARYMicrosoft SQL Server and other Server data sources often have statistical information regarding how many rows were affected by a particular SQL statement when executed. Visual FoxPro does not retrieve this information from the server for you. This article discusses how you can integrate the use of Stored Procedures on the server to retrieve this information. MORE INFORMATION
When you are working with data on a server, you need to know how many rows
in the table were affected by a certain SQL command, similar to the
information provided by the _TALLY variable in Visual FoxPro.
The SQL Server procedure takes two parameters, the customer id and the
order amount. It then updates a table on the server and returns the value
@@ROWCOUNT, which is a system-defined variable in Microsoft SQL Server
containing the number of records modified by the last SQL Statement.
The FoxPro code shows how to pass a FoxPro variable to the stored procedure and have it filled in by the stored procedure. REFERENCESMore information can be found on SQL Server stored procedures in the Microsoft SQL Server manuals. Information about Output parameters in Visual FoxPro can be found in the Visual FoxPro documentation. Additional query words:
Keywords : kbinterop kbAutomation kbVFp500 kbVFp600 |
Last Reviewed: August 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |