Well, I have an application ERP constructs in Delphi with ZEOS. Database is SQL SERVER. When happens some error, it doesn't return correct message, independent error, always return: -1 record(is) updated. Only one record should have been updated instead of correct error For example: I know problem is that I'm trying to delete a customer that has Foreign Key with another table. But in my software, when I try to delete this customer, I receive the message "-1 record(s) updated. Only one record should have been updated" instead of "The DELETE statement conflicted with the REFERENCE constraint "foreign key name". The conflict occurred in database "database name", table "table name", column 'column name'."
But, I guess it doesn't a problem in my Delphi. Because, if I use the same application, but with the database of another customer, it works!
Has anyone any solution?
For now, thanks.
Dirceu Vieira.