Fastest way to bulk insert rows into sql server

前端 未结 5 1981
迷失自我
迷失自我 2021-02-08 18:41

Via a web service, remote computers will be sending a set of rows to insert into our central sql server.

What is the best way (performance wise) to insert these rows? T

5条回答
  •  终归单人心
    2021-02-08 18:58

    What kind of web service is this?

    If it's .Net, usually the best way is to load the input into a DataTable, then shoot it up to the SQL server using the SqlBulkCopy class

提交回复
热议问题