Guy
3/27/2007 12:00:00 PM
Hi all,
Newby here - with a problem!
I have two tables (A and B). Table A has a unique id (Aid) and table B has
its own unique id (Bid) but also a foreign key which is table A's unique id
(Aid).
Table A
Aid (PK)
Table B
Bid (PK)
Aid (FK)
When inserting a new record into table A I need to take the unique id table
A has just created (Aid) and insert this as a record into table B.
I think I have to use scope_identity but really don't know where to go from
here... any help is much appreciated!