I have 1 web application in c# & I have to save records in sql server database.
Now it can be insert or update if the same record is already inserted.
I have implemented it using foreach loop but I feel some better method should be available to insert multiple records.
Kindly give some suggestion for the same
I have to insert randomly selected records in database, it can be either update of records or insertion then what is the best way to insert / update mass records?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Pankaj RanaRank #2,270 · 620 reputationPosted Aug 18, 2012, 4:55 AM EDT