简体   繁体   English

SQL Server 2012 - 同义词

[英]SQL Server 2012 - Synonyms

SQL Server 2005/8 allows you to associate a synonym with a remote table (ie a table on a different instance - the reference is via a 4-part name, which includes the link server name). SQL Server 2005/8允许您将同义词与远程表关联(即,不同实例上的表 - 引用是通过包含链接服务器名称的4部分名称)。 Does anyone know whether SQL Server 2012 allows a synonym to be directly associated to the Link Server name (rather than a table which exists on the target) 有谁知道SQL Server 2012是否允许同义词直接与链接服务器名称相关联(而不是目标上存在的表)

Looking at the Books Online for SQL Server Denali, there appears to be no change in syntax or usage for SYNONYM's. 查看SQL Server Denali的联机丛书,SYNONYM的语法或用法似乎没有变化。 Probably a safe bet to assume there will be no difference. 可能是一个安全的赌注,假设没有区别。

Why don't you just duplicate the linked server with your desired new name? 为什么不用所需的新名称复制链接服务器? That's not a synonym, but the same server will be available with two names, so in practice they are pretty much the same. 这不是同义词,但同一个服务器将有两个名称,所以在实践中它们几乎是一样的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM