hi,
In my datatable there are 1000 records, and i need to insert 500 first then in second loop 500 in database in VB.net
thanks
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Brijendra GautamRank #1,900 · 778 reputationPosted Apr 8, 2014, 4:36 AM EDT
In Stored procedure,
read the xml and store it into a table variable or temp table and then use insert query to insert data into table.
Abhishek JaiswalRank #126 · 17.5K reputationPosted Apr 8, 2014, 6:51 AM EDT
try this alternate way of inserting DATA in a faster way
http://www.sqlservercentral.com/blogs/nycnet/2012/05/11/one-way-to-insert-many-rows-very-fast-from-your-net-application/
:)
Varsha B83 reputationPosted Apr 9, 2014, 3:08 AM EDT
Brijendra GautamRank #1,900 · 778 reputationPosted Apr 10, 2014, 1:42 AM EDT
Varsha B83 reputationPosted Apr 10, 2014, 2:07 AM EDT
@CustomerList is my UDT as Table thereby i'm consuming this table in my stored procedure to insert the records in to the table
Without creating XML how can i achieve this...?
Jignesh TrivediRank #16 · 50.3K reputationPosted Apr 10, 2014, 2:19 AM EDT
hi,
using table value parameter, you can achieve this.
Please refer my article
http://www.c-sharpcorner.com/UploadFile/ff2f08/table-valued-parameter-in-sql-server-2008/
hope this will help you.