Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in
Home       Members    Calendar    Who's On

Add to briefcase

What is the best way to insert data into database sqlserver 2005 in one to many relation with multiple records(>100s)? Expand / Collapse
Posted Wednesday, June 26, 2013 10:22 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, August 8, 2013 8:47 PM
Points: 2, Visits: 4
Hi, All, I have a problem when inserting record into database sqlserver two tables ( 1-n),
ex: table1(id,name,totalamt)
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
Post #1467949
Posted Thursday, June 27, 2013 4:04 AM



Group: General Forum Members
Last Login: Tuesday, December 6, 2016 8:44 PM
Points: 2,917, Visits: 4,957
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
Post #1468063
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse