简体   繁体   English

sql server management studio代码完成

[英]sql server management studio code completion

I've noticed that whenever I add tables / stored procs / functions / whatever to a sql server database, that it takes a while for the code completion to pick up that they are now part of the database. 我注意到,每当我向sql server数据库添加表/存储的procs /函数/任何内容时,代码完成都需要花一些时间才能知道它们现在是数据库的一部分。

This is really annoying since the code completion and syntax highlighting become totally broken in the workflow scenario where you create a table and then start writing queries or whatever that deal with this new object. 这真的很烦人,因为在您创建表然后开始编写查询或处理该新对象的工作流场景中,代码完成和语法突出显示完全被破坏了。

Does anyone know how to get the code completion / syntax highlighting engine to update it's view of what is in the database to get rid of all these spurious invalid object name errors? 有谁知道如何获取代码完成/语法高亮引擎来更新数据库视图以消除所有这些虚假的无效对象名称错误?

I understand that it's too late to answer the question but maybe it will help someone. 我知道现在回答这个问题为时已晚,但也许会对某人有所帮助。

You can refresh the Intellisense cache with Ctrl+Shift+R , and wait for 5-10 seconds. 您可以使用Ctrl+Shift+R刷新Intellisense缓存,并等待5到10秒钟。

A guess: Close and reopen SSMS? 一个猜测:关闭并重新打开SSMS吗? Lame and ineffective, and I hope there's a better way. me脚且无效,我希望有更好的方法。

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

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