SQL speed up performance of insert?

前端 未结 3 1850
遇见更好的自我
遇见更好的自我 2020-11-30 09:15

I am performing some test on sql server and I want to get the best insert speed possible. The statement I use is something like this:

INSERT INTO db_Test_d         


        
3条回答
  •  抹茶落季
    2020-11-30 09:36

    Have you considered using SqlBulkCopy? You need to build a DataTable and pass it to the WriteToServer routine.

    It's FAST!

提交回复
热议问题