I have tried to perform update on table which was trigger by update on other table and I got error message:
The row value(s) updated or deleted either do not make the row unique or they alter multiple rows.
For example I have this tables:
table_1
===========
int id (primary_key,identity)
nchar(10) state_name
table_2
===========
int number
And after updating table_2 I want to change all values in column 'state_name' to 'false'
create trigger tr on table_2
after update
as
update table_1 set state_name = 'false'
And when I try to update table_2 I receive error message. Is there a way to walk around this limitation?