In message <#Rvv2SAeFHA.544 (AT) TK2MSFTNGP12 (DOT) phx.gbl>, Adrian
<Adrian.Porger (AT) gmx (DOT) de> writes
Quote:
Thats a good Idea but how do I get the Identity value from my parent row?
Thanks a lot !
Adrian |
Make the parent row insert through a Lookup. The lookup can be an insert
and a select, the latter for SCOPE_IDNTITY(). Make sure you SET NOCOUNT
ON in the lookup. Might be easier to wrap this in a porc through.
--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com
PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org