PRB: No Error If UPDATE or DELETE Processes 0 RowsLast reviewed: April 25, 1997Article ID: Q63869 |
The information in this article applies to:
- Microsoft SQL Server version 4.2 for OS/2 - Microsoft SQL Server version 4.2
SYMPTOMSSQL Server does not report an error when an UPDATE or DELETE statement fails to process any rows.
CAUSEIn SQL Server, an UPDATE or DELETE statement that does not process any rows because of the conditions in the WHERE clause is considered to have executed as intended. The status returned by dbsqlexec() will be SUCCEED, not FAIL. DBCOUNT can be used to determine the number of rows processed by the previous statement.
|
Additional query words: Windows NT dblib
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |