Hi,
I need to insert several rows into two tables like: table product and table productDetail.
The product table has an identity column and the productDetail table has an id column references to the identity column.
So when one row is inserted into the product table, the corresponding productDetail row should be populated.
If there is only one row to insert, it won't be a problem. How can I insert several rows I know I can use cursor, but I always heard about the performance issues related. Is there a chance to avoid cursor
Many Thanks

how to do it without using cursor?
Karen Grube
KannanPV
Hi,
Try out the below mentioned link ,might be it helps you out.
http://www.sql-server-performance.com/dp_no_cursors.asp