SQL Server insert performance

后端 未结 8 1126
终归单人心
终归单人心 2020-12-29 06:01

I have an insert query that gets generated like this

INSERT INTO InvoiceDetail (LegacyId,InvoiceId,DetailTypeId,Fee,FeeTax,Investigatorid,SalespersonId,Creat         


        
相关标签:
8条回答
  • 2020-12-29 06:43

    You have tagged this question as "bulkinsert". So why not use the BULK INSERT command?

    If you want progress updates you can split the bulk insert into smaller pieces and update the progress after each piece completes.

    0 讨论(0)
  • 2020-12-29 06:46

    There are a several things you can do:

    1) Disable any triggers on this table
    2) Drop all indexes
    3) Drop all foreign keys
    4) Disable any check constraints
    
    0 讨论(0)
提交回复
热议问题