简体   繁体   English

为什么Intellisense在SQL Server Management Studio 2008 R2中不起作用?

[英]Why Intellisense doesn't work in SQL Server Management Studio 2008 R2?

I have SQL Server Management Studio 2008 R2. 我有SQL Server Management Studio 2008 R2。

I have tried these: 我试过这些:

  1. Tools->Options->Query Execution->SQL Server->General, make sure “By default, open new queries in SQLCMD mode” is unchecked 工具 - >选项 - >查询执行 - > SQL Server->常规,确保未选中“默认情况下,在SQLCMD模式下打开新查询”

  2. Go to Tools >> Options >> Text Editor >> Transact-SQL >> General >> IntelliSense Select Auto List Members and Check Parameter Information. 转到工具>>选项>>文本编辑器>> Transact-SQL >>常规>> IntelliSense选择自动列表成员并检查参数信息。

  3. Restarted, repaired Visual Studio 2010 重新启动,修复了Visual Studio 2010

  4. Installed VS 2010 SP1 已安装VS 2010 SP1

  5. Query/Intellisense Enabled selected Query / Intellisense启用已选中

But still it doesn't work. 但它仍然无效。

Any clue? 任何线索?

Apparently when you install VS2010 SP1 it breaks intelliSense of SQL Server 2008 R2. 显然,当您安装VS2010 SP1时,它会破坏SQL Server 2008 R2的智能感。 You will need to install either CU or SP1 for SQL Server 2008 R2 mentioned in this Support KB from MSFT. 您需要为MSFT的此支持KB中提到的SQL Server 2008 R2安装CU或SP1。

Had this today as well. 今天也有这个。 Following a thread I found elsewhere the solution was to detach all offline databases. 在我在别处找到的一个线程之后,解决方案是分离所有脱机数据库。 Restarted the service and boom! 重新启动服务和繁荣! started working. 开始工作了。

这是一个非常古老的问题,但我遇到了同样的问题,并且修复它是在sql server 2008上进行修复。问题是我必须在修复之前添加/删除程序才能卸载“Microsoft修复之前的SQL Server Compact <Ver> <SP1 / 2> <Lang>“,因为它的安装文件名在Sql Server安装程序中与VS安装程序不同。

Offline databases cause Intellisense to stop working in SSMS 2016 and Sql Server 2016 RTM, possibly earlier versions as well. 脱机数据库导致Intellisense停止在SSMS 2016和Sql Server 2016 RTM中工作,也可能是早期版本。 Verified this by opening a new query window and verifying Intellisense is working. 通过打开一个新的查询窗口并验证Intellisense是否有效来验证这一点。 Then took a database Offline and tried Intellisense... it stopped working. 然后将数据库脱机并尝试Intellisense ...它停止工作。 Brought the database back Online and Intellisense comes back to life and starts working again. 使数据库恢复在线,Intellisense恢复生机并重新开始工作。

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

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