Linked Server Insert-Select Performance

后端 未结 6 584
时光取名叫无心
时光取名叫无心 2021-01-02 17:30

Assume that I have a table on my local which is Local_Table and I have another server and another db and table, which is Remote_Table (table struct

6条回答
  •  说谎
    说谎 (楼主)
    2021-01-02 18:14

    It seems like it's much faster to pull data from a linked server than to push data to a linked server: Which one is more efficient: select from linked server or insert into linked server?

    Update: My own, recent experience confirms this. Pull if possible -- it will be much, much faster.

    Try this on the other server:

    INSERT INTO Local_Table
    SELECT * FROM RemoteServer.RemoteDb.Remote_Table
    

提交回复
热议问题