How does BULK INSERT work internally?

后端 未结 3 1897
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-31 13:48

Could someone please explain how does BULK INSERT internally work and why is it much faster than the normal INSERT operations ?

Regards, Shishir.

3条回答
  •  佛祖请我去吃肉
    2020-12-31 13:58

    Internally, it converts to an OLEDB recordset, then loads the table.

    I've not given it much thought, but I'd assume this is quicker when run on the SQL Server box rather than the client. Plus you can manage constraints that you can't with normal INSERT

    From BOL

提交回复
热议问题