What is the best way to insert data into database sqlserver 2005 in one to many relation with multiple records(>100s)?

  • Hi, All, I have a problem when inserting record into database sqlserver two tables ( 1-n),

    ex: table1(id,name,totalamt)

    table2(id,subid,amt,price)

    i want use store proc with parameter ( list record in table2 > 100s) to insert data into 2 tables( using transaction in store), i hope i will be supported from every body?

    thanks all

  • I am not really clear what your requirement is.

    You can probably explain it much better with some DDL, sample data( may be some 10 - 20 rows ) and the expected results based on the sample data

    If you are not sure about how to provide this, please refer the link in my signature for detailed information


    Kingston Dhasian

    How to post data/code on a forum to get the best help - Jeff Moden
    http://www.sqlservercentral.com/articles/Best+Practices/61537/

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply