Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQLSMS Intellisense on linked server

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,

like image 538
Jorge Avatar asked Nov 07 '17 10:11

Jorge


People also ask

How do I enable IntelliSense in SQL Server Management Studio?

How to Enable IntelliSense Feature in SSMS. Open SSMS, click Tools -> Options -> Expand Text Editor -> Expand Transact-SQL and click on IntelliSense as shown in the snippet below. Under Transact-SQL IntelliSense Settings ensure “Enable IntelliSense” checkbox is enabled.

Why IntelliSense is not working in SSMS?

IntelliSense is not available when the Query Editor is connected to earlier versions of the Database Engine. IntelliSense is turned off in the Database Engine Query Editor when the SQLCMD mode is set on.

How do I query a linked server in SQL Server Management Studio?

1 Open SQL Server Management Studio, navigate to the Object Explorer pane, and select Server Objects > Linked servers > Providers. 2 Right-click mrOledb. Provider and select Properties. 3 Select allow in process, and then click OK.

Why is my IntelliSense not working in SQL Server?

The first step of troubleshooting IntelliSense is to check and make sure IntelliSense is enabled in the settings. Launch SSMS and go to menu Tools >> Options. In the Options window, expand TextEditor >> Transact-SQL >> IntelliSense. Make sure Enable IntelliSense is selected.


2 Answers

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

like image 156
Nick.McDermaid Avatar answered Sep 28 '22 18:09

Nick.McDermaid


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.

like image 39
ssurba Avatar answered Sep 28 '22 18:09

ssurba