G
Guest
Hello All,
I have the following situation.
I have a parent table and a child table.
The parent table has an identity field which
is the primary key. This primary key is also a
field in the child table for relationship purposes.
I am doing a transaction "INSERT" on "BOTH" the parent and child at the
same time by inserting then committing the transactions.
My questions is this.
If I am doing a commit on both transactions at the same time how do I get
the new identity value from the parent table and store this value with the
new child row that will be inserted with the parent at the same time?
Thanks,
Mark
I have the following situation.
I have a parent table and a child table.
The parent table has an identity field which
is the primary key. This primary key is also a
field in the child table for relationship purposes.
I am doing a transaction "INSERT" on "BOTH" the parent and child at the
same time by inserting then committing the transactions.
My questions is this.
If I am doing a commit on both transactions at the same time how do I get
the new identity value from the parent table and store this value with the
new child row that will be inserted with the parent at the same time?
Thanks,
Mark