SQL Server 2008 R2 intellisense doesn't work

江枫思渺然 提交于 2019-12-12 14:24:02

问题


The SQL Server 2008 R2 Management Studio intellisense stopped working a month ago though it is enabled. I read that this issue may be caused by the .NET framework 4.0 SP1 and tried some of the suggestions but nothing worked:

  • I have installed the cumulative update package: SQLServer2008R2_RTM_CU7_2507770_10_50_1777_x64
  • I re-registered the TextMgrP.dll

Any other suggestions what can be done?

The SSMS version is: Microsoft SQL Server Management Studio 10.50.1617.0


回答1:


  1. Make sure you are connected to SQL Server 2008 Edition. IntelliSense does not work with the previous versions of SQL Server.

  2. IntelliSense should be enabled. There are two ways to verify whether IntelliSense is enabled or not. a) From Toolbar b) Go to Tools -> Options -> Text Editor -> Transact-SQL -> IntelliSense

  3. IntelliSense should be refreshed with the latest changes in database. a) Press CTRL+SHIFT+R b) Go to Edit -> IntelliSense -> Refresh Local Cache

  4. Go to Tools -> Options -> Text Editor -> Transact-SQL -> General -> IntelliSense Select Auto List Members and Check Parameter Information.




回答2:


I got the same problem.
For me the only thing it works was to select the database manually from the source code.

I just add

use MYDATABASE;
GO

Im my case it looks like that the source code couldn't be associated to a default database.



来源:https://stackoverflow.com/questions/13270186/sql-server-2008-r2-intellisense-doesnt-work

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