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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jignesh TrivediPosted Apr 10, 2014, 6:19 AM
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.
Varsha BPosted Apr 10, 2014, 6:07 AM
@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...?
Brijendra GautamPosted Apr 10, 2014, 5:42 AM
Varsha BPosted Apr 9, 2014, 7:08 AM
Abhishek JaiswalPosted Apr 8, 2014, 10:51 AM
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/
:)
Brijendra GautamPosted Apr 8, 2014, 8:36 AM
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.