Hi
i have small dought .if im inserting record into DB (record may have multple values) and record will be inserted into 2 tables .in first table after record insertion i need to capture ID which is recently incremented (first table ID has Identity) .and i need to insert that value into second table in same time.is it possible without single join query .or without joins (which one is best).and i would like to done this in single code block execution.any leads
Thanks and Regards



Amit GuptaRank #190 · 12.8K reputationPosted Nov 3, 2016, 4:32 AM EDT
Nitin SontakkeRank #264 · 9.6K reputationPosted Nov 3, 2016, 4:42 AM EDT
Ananth GRank #1,176 · 1.5K reputationPosted Nov 3, 2016, 10:40 PM EDT