Hi.
I have two tables tableA and tableB; both have a primary key (integer data type).
There is a trigger on insert after on tableA. Inside this trigger I put an insert on tableB.
So given the following situation:
insert into tableA....
select @@identity from sys.dummy
the value of identity is changed by that insert inside of the trigger on tableA?
I noticed it's not changed but I can't explain this.
Popa Gabriel
I have two tables tableA and tableB; both have a primary key (integer data type).
There is a trigger on insert after on tableA. Inside this trigger I put an insert on tableB.
So given the following situation:
insert into tableA....
select @@identity from sys.dummy
the value of identity is changed by that insert inside of the trigger on tableA?
I noticed it's not changed but I can't explain this.
Popa Gabriel