Create View using Linked Server db in SQL Server

前端 未结 7 809
醉酒成梦
醉酒成梦 2020-12-30 04:06

How can I create View on Linked Server db. For Example I have a linked server [1.2.3.4] on [5.6.7.8]. Both db servers are SQL Sserver 2005. I want to create View on [5.6.7.8

7条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-30 05:09

    You need to define a Linked Server before you can access it, since the linked server entry also contains the authentication details.

    After creating a linked server, you can access its databases and their objects using the dot notation servername.database.[owner].object

提交回复
热议问题