Link to home
Start Free TrialLog in
Avatar of cbtidball
cbtidball

asked on

ASP - SQL Server mass update

I have a form which contains 500 rows of data (with 500 check boxes.)  The user selects 200 of the 500 choices and submits the form... my question is: what is the most efficient way to handle this update?  Do I have the action page loop through each of the 500 form variables and perform 500 update queries on my db?  Or do I have have the web page create two in-statements and execute 2 big update queries.. ie:  Update field where otherfield in('formvariable1','formvariable2', etc..)  Or is there a better way?

Thansk,
Chris
ASKER CERTIFIED SOLUTION
Avatar of Anthony Perkins
Anthony Perkins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of cbtidball
cbtidball

ASKER

Inserting the 500 rows is faster?
I suspect you will find that is the case.