What’s the best way to bulk database inserts from c#?

前端 未结 10 2147
盖世英雄少女心
盖世英雄少女心 2020-12-02 14:22

How do I/what’s the best way to do bulk database inserts?

In C#, I am iterating over a collection and calling an insert stored procedure for each item in the collect

10条回答
  •  天命终不由人
    2020-12-02 15:12

    You could update with an Xml document, Sql 2005 works very well with them. One node per row, but just one parameter for Xml.

提交回复
热议问题