IntelliSense is not working in SQL Server Management Studio

早过忘川 提交于 2019-12-09 08:21:48

问题


We use SQL Server Management Studio 2008 R2. IntelliSense works with SA account perfectly. But it is not working with Windows Authentication user. The user has access master db with db_owner role but it's not sysadmin.

How do I fix this issue?


回答1:


You can try solution from these questions1 or questions2 and questions3.
Or please try these steps as below:

  • Enable IntelliSense:
    • For all query windows, please go to Tools >> Options >> Text Editor >> Transact-SQL >> IntelliSense, and select Enable IntelliSense.
    • For each opening query window, please go to Query >> Intellisense Enabled.
  • Enable statement completion: please go to Tools >> Options >> Text Editor >> Transact-SQL >> General, and check on Auto list members and Parameter information boxes.
  • Refresh IntelliSense local cache: please go to >> Edit >> IntelliSense >>Refresh Local Cache or use the CTRL+Shift+R keyboard shortcut to refresh.
  • Wait a minute or two for the Refresh to finish before trying again.



回答2:


This may seem too short of an answer, but probably it's the solution to your Problem:

CTRL+SHIFT+R

Also, I found this: Troubleshooting IntelliSense (SQL Server Management Studio)




回答3:


I had the same issue. Everything was enabled to ensure proper Intellisense functions, but didn't work. I realized I had SQLCMD mode enabled by default. Disabling it restored Intellisense functionality :)




回答4:


Increasing the Maximum script size under Tools, Options, Text Editor, Transact-SQL, IntelliSense fixed Intellisense for me.




回答5:


Missing from other solutions, but fixed it for me:

Edit > IntelliSense > Toggle Completion Mode

or CTRL+ALT+Space




回答6:


My schemes were too big. I had to do this:

Tools >> Options >> Text Editor >> Transact-SQL >> Intellisence

Maximum script size: Unlimited




回答7:


I found solution at the end. I installed SQL2008 R2 SP3.




回答8:


It could also depends on your destination server.

For instance for server 2005, intellisense will not work. Here is a command to check this :

SELECT SERVERPROPERTY('ProductVersion');

If version begin with 8 or 9 it will not work.

More information for : sql server intellisense trouble here

A workaround could be to use a sql server plugin as Autocomplete version express




回答9:


After installing visual studio or upgrading that, this issue can happen follow the link : what is the problem of IntelliSense in sqI ntelliSense and for solve that you can do this: update sql server by updating to the latest version you can get your solution.




回答10:


  • if Auto list members and Parameter information boxes are ENABLE, make them disable and then press ok button. After the operation, make the boxes enable again and press ok button.
  • if Auto list members and Parameter information boxes are DISABLE, make them enable and then press ok button.



回答11:


If you have are seeing your text in red color, and have a bunch of statements, it could be because of a missing quote. Or a bad syntax check. Try typing a quote at the end. Then Intellisense should kick in again in your next statement.




回答12:


Turning Query > SQLCMD Mode on and off again fixed the issue for me in SSMS 18.1, even though it was never enabled to begin with.

After trying all the answers here to no avail and giving up, I remained curious about the SQLCMD Mode mentioned in Chow Lover's answer. I turned it on to see what it did, but noticed no change so turned it off again. Intellisense suddenly awoke and has been working fine since.




回答13:


Issue:

My SSMS Intellisense was not working. Intellisense was Enabled from the Tools. Refreshed the Intellisense Local cache and still no luck.

Solution:

For me, the solution was to increase SQL Server Minimum memory per queryy (in KB). It was set to 1024 KB(1M). I increased it to 100 MB then it solved my problem.

Disclaimer Notice:

Please do not make this kind of changes without consulting your DBA and not knowing the resources available on that server. It basically, will allocate that amount of space for every new query window you will open. So, if you set too many users then you have low memory server and you set to something higher then your server might crash.

Minimum memory per query settings:



来源:https://stackoverflow.com/questions/31580885/intellisense-is-not-working-in-sql-server-management-studio

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