Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

update performance for bulk database updation

$
0
0

Hi all,

i have one web application in asp.net 3.5 having one datagrid(asp.net1.1 control) on page.

on page i have 10 dropdown and normal columns is present on grid.now i want to clooect all data from grid i.e. take dropdown value,and other rows values. and update this value in data base.

for this i use loop to collect all value(by using .findControl("") method) and prepaired 10 update sql string with ; seperated e.g.

update;update;update and pass this whole string to store proc.

then i pass this whole string as argument to one of my store procedure to fire this update queryes at a time

my point is

1) Is this procedure is correct bc'z my table having 2600000 records so i dont want to down my performance.

2)if i fire 10 update query in store proc. is this done using single connection.

3)Is any other best method for doing this with best performance.

 


Viewing all articles
Browse latest Browse all 1698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>