Fastest way to bulk insert rows into sql server

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

    To echo all other answers, 500 rows is no issue for SQL server. If you do need to insert a large number of records, the fastest way is with a built-in stored proc called BulkInsert,

    BulkInsert

    which (I Believe) is an entry point to a SQL Server utility designed specifically for doing this called bcp.exe

    bcp

提交回复
热议问题