Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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
Author
Message
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)
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
Post #1467949
Posted Thursday, June 27, 2013 4:04 AM


SSCrazy

SSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazySSCrazy

Group: General Forum Members
Last Login: Today @ 7:17 AM
Points: 2,682, Visits: 4,745
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/
Post #1468063
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse