Fastest way to bulk insert rows into sql server

前端 未结 5 1989
迷失自我
迷失自我 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:09

    Unless you're running on a 10 year-old computer, 50-500 rows isn't very many; you could literally send over SQL statements and pipe them directly into the database and get great performance. Assuming you trust the services sending you data, of course :-)

    If performance really is an issue sending over a bcp file is absolutely the fastest way to jam data in the database. It sounds from your question that you already know how to do this.

提交回复
热议问题