Create View using Linked Server db in SQL Server

前端 未结 7 810
醉酒成梦
醉酒成梦 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:00

    For linked servers using the periods for a web service name - this won't work.
    The code details and steps of the difference is posted at:
    http://www.access-programmers.co.uk/forums/showthread.php?t=260764
    e.g. FROM [V2.EGG.COM]..[NAT_DBA].[NV_WELLS]
    In SSMS 2008, the square brackets around the [V2.EGG.COM].. are removed by the editor. Then the update failes because it is more than 4 parts.
    Have searched in vain to find a work-around.
    The Script that does work is posted at the link above.

提交回复
热议问题