为什么 Intellisense 在 SQL Server Management Studio 2008 R2 中不起作用?
我有 SQL Server Management Studio 2008 R2。
我已经尝试过这些:
-
工具->选项->查询执行->SQL Server->常规,确保“默认情况下,在SQLCMD模式下打开新查询”未选中
转到工具>>>选项>>文本编辑器>> Transact-SQL>>一般>>智能感知 选择自动列出成员并检查参数信息。
-
重新启动,修复 Visual Studio 2010
-
安装 VS 2010 SP1
-
选择启用查询/智能感知
启用
但是还是不行。
有什么线索吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
这是一个相当老的问题,但我遇到了同样的问题,解决方法是在 sql server 2008 上进行修复。问题是我必须先进入添加/删除程序,然后再进行修复以卸载“Microsoft SQL Server Compact <版本>”修复之前,因为其安装文件名在 Sql Server 安装程序中与 VS 安装程序中不同。
This is a pretty old question, but I ran into the same issue and the fix for it was to do a repair on sql server 2008. The catch was that I had to go into add/remove programs before doing the repair to uninstall "Microsoft SQL Server Compact <Ver> <SP1/2> <Lang>" before the repair because its setup file name is different in the Sql Server installer than the VS installer.
脱机数据库会导致 Intellisense 在 SSMS 2016 和 Sql Server 2016 RTM(也可能是早期版本)中停止工作。通过打开一个新的查询窗口并验证 Intellisense 是否正常工作来验证这一点。然后将数据库脱机并尝试智能感知...它停止工作。使数据库恢复在线状态,Intellisense 恢复正常并重新开始工作。
Offline databases cause Intellisense to stop working in SSMS 2016 and Sql Server 2016 RTM, possibly earlier versions as well. Verified this by opening a new query window and verifying Intellisense is working. Then took a database Offline and tried Intellisense... it stopped working. Brought the database back Online and Intellisense comes back to life and starts working again.
显然,当您安装 VS2010 SP1 时,它会破坏 SQL Server 2008 R2 的智能感知。您需要安装来自 MSFT 的支持知识库中提到的 SQL Server 2008 R2 的 CU 或 SP1 。
Apparently when you install VS2010 SP1 it breaks intelliSense of 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.
Visual Studio 2010 SP1 显然破坏了一些东西:
https://connect.microsoft.com/SQLServer/feedback/details/650569/ssms-2008-r2-is-losing-intellisense-after-installing-visual-studio-2010-sp1
Visual Studio 2010 SP1 apparently broke something:
https://connect.microsoft.com/SQLServer/feedback/details/650569/ssms-2008-r2-is-losing-intellisense-after-installing-visual-studio-2010-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.