SQL MERGE to remote (linked) server table

前端 未结 3 2186
死守一世寂寞
死守一世寂寞 2021-02-13 22:23

Is it possible to utilize the SQL MERGE function on a linked server\'s database table? The end goal is to synchronize the remote table with our local SQL server table. I’ve done

3条回答
  •  春和景丽
    2021-02-13 22:34

    To reiterate the comment by @Mikael Eriksson, yes, you can. The target of a MERGE cannot be remote, but the source of a MERGE can be remote. So, if you can run the MERGE statement from your server in FL, then it is quite possible. For example, you could run something like this on your remove server in FL:

    MERGE INTO "local FL table" USING "CT server"."database"."schema"."same table" ON ...
    

提交回复
热议问题