SQLSMS Intellisense on linked server

时间秒杀一切 提交于 2020-06-08 17:37:06

问题


I'm trying to work Microsoft SQL Server Management Studio 10.0.5538.0 (latest right now) with Intellisense on linked servers, for example:

SELECT Column FROM [LinkedServer].DatabaseName.dbo.Table WITH(NOLOCK)

But I couldn't find a way to make intellisense show results as I write SQL code (it works fine with non-linked servers)

Things I've tried:

  • Look for answers in SQLSMS docs.
  • Look for specific config option in the application.
  • Update local cache in Edit -> IntelliSense -> Refresh local cache.

Thanks for your help,


回答1:


Apparently this isn't supported.

https://social.msdn.microsoft.com/Forums/sqlserver/en-US/ef973d28-6450-451c-840f-9d14c7ae4ed1/intellisense-invalid-object-name-on-linked-database-runs-fine?forum=sqldatabaseengine

One reason given is that this linked server could be Oracle, Excel... anything, and to support that is unfeasible




回答2:


While it isn't supported from a linked server at least turning off IntelliSense makes it a lot clearer. This can be done by simply pressing CTRL-I while in the query window. The same keyboard shortcut turns it back on again when required.




回答3:


As an addendum to this answer by BenXvisual, in SSMS 17.9.1 (14.0.17289.0) hotkey for switching off Intellisense is Ctrl-B, Ctrl-I.



来源:https://stackoverflow.com/questions/47155304/sqlsms-intellisense-on-linked-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!