How do I/what’s the best way to bulk database inserts?
From a c# perspective I am iterating over a collection and calling an insert stored procedure for each item in the collection.
How do I send all the data in one database call?
E.g. say I have a person list (List) containing 10 items, I am currently calling the InsertPerson store proc 10 times. I would like to reduce this to 1 call.
/I am using MS SQL Server 2005.
Thanks a lot.