Fastest way to bulk insert rows into sql server

前端 未结 5 2227
迷失自我
迷失自我 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 19:06

    50-500 rows shouldn't be a problem! There is no need to do performance tuning! Do normal (prepared) SQL Statements in your application.

    Don't kill it with complexity and overengineering.

    When you should insert more than 250.000 rows, you should think about scaling!

    Don't turn of the constraints, you might kill the DB.

提交回复
热议问题