Click here to Skip to main content
15,908,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I found that I was getting the "Row cannot be located for updating. Some values may have been changed since it was last read." error if the update fired a trigger on the table.
The following seems backwards to me, but:
1. If the trigger did not update anything in the row, I got the error.
2. If the trigger did update something in the row, I did NOT get the error.
Posted

1 solution

Just a thought: Does the table contain a primary key? Maybe some other user/program made changes effecting the primary key. What does your on UPDATE trigger do? Please explain.
 
Share this answer
 
v2
Comments
Bassofa 21-Jan-11 10:59am    
Originally, I am indirectly updating a view; that is, I am updating the source tables of the view.
I am doing it through asp code. This is how I am implementing it:
When the asp tries to update the view, the trigger takes over and it updates the source tables (from which the view select it's data). So this is what makes it an indirect update. But I am pretty sure that I have primary Keys for all my tables.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900