Hi...
actually i am working on a performance issue,i have a 1000 record in a gridview in a web page and i am allowing the editing of the data and when a save button is clicked i want to update the records in the database again using a stored procedure is there another way to update my database without fetching each row of the gridview in the update process??
i mean can i just pass a datatable or something to the sqlserver in the stored procedure parameters and then it updates it self ????
thanks in advance
Bulk update with a stored procedure ?
4 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Satish BhatRank #2,496 · 563 reputationPosted Aug 17, 2011, 4:44 AM EDT
2] Convert the grid data into csv file and use BULK INSERT SQL Query. (REF)
3] Convert the grid data into xml and follow this
I found a good example here which is similar to your requirement.
Morcos Adel115 reputationPosted Aug 18, 2011, 1:02 AM EDT
it really helped me out..
Satish BhatRank #2,496 · 563 reputationPosted Aug 18, 2011, 1:23 AM EDT
Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Aug 18, 2011, 2:29 AM EDT