The information in this article applies to:
SYMPTOMSIf any data is modified, updated, or inserted into a table which is contained in a stored procedure, the SQLRowCount function does not return the number of affected rows. It returns a value of -1. WORKAROUNDTo correctly return the number of rows affected, use the @@ROWCOUNT variable in the stored procedure. STATUSMicrosoft has confirmed this to be a problem in Microsoft SQL Server version 6.5. This problem has been corrected in the latest driver 3.60.0310 available with ODBC3.5SDK. A supported fix is now available, but has not been fully regression-tested and should be applied only to systems experiencing this specific problem. Unless you are severely impacted by this specific problem, Microsoft recommends that you wait for the next Service Pack that contains this fix. Contact Microsoft Technical Support for more information. Additional query words: ODBC
Keywords : SSrvProg kbbug6.50 |
Last Reviewed: December 14, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |