Master/Detail insert using BCP?

Posted by Joseph on Stack Overflow See other posts from Stack Overflow or by Joseph
Published on 2010-04-13T10:16:35Z Indexed on 2010/04/13 10:23 UTC
Read the original article Hit count: 704

Filed under:
|

I've a master table with identity on for the primary key and I've some child tables. When I insert a record to the master table using BCP, how can I use the newly created ID from the master table to insert in the related child tables (May be BCP again)? Will it be possible? I may be able to set identity off, but, will it work?

Thanks Joseph

© Stack Overflow or respective owner

Related posts about bcp

Related posts about masterdetail