开发者

Upload half-million rows into SqlServer

开发者 https://www.devze.com 2023-03-21 11:05 出处:网络
Hi guys I need your advice I need to upload about half-million rows from a xml file into a SqlServer table periodically. I could use SqlBulkCopy but there is some extra logic. I need to track changes

Hi guys I need your advice

I need to upload about half-million rows from a xml file into a SqlServer table periodically. I could use SqlBulkCopy but there is some extra logic. I need to track changes in the xml files and copy that changes into another table. What is the best way to do it? I dont't want to use Entity Framework or LinqToSql because I want to set table names in the 开发者_开发问答config file.


Use BulkCopy.

  • Bulk Copy Operations in SQL Server (ADO.NET)
  • Sample code
0

精彩评论

暂无评论...
验证码 换一张
取 消