Question

I've created and succesfully compiled new procedure in SQL Microsoft Management Studio 2012.

After that I want to use it in other procedure like exec my_new_procedure.

It works perfect and procedure compiled as well, but in editor of Microsoft Management Studio 2012 my procedure call (exec my_new_procedure) underlined with red line as called procedure is not exists.

Situation is fixed after I close and run again Microsoft Management Studio. How can fix it without reload Microsoft Management Studio?

Was it helpful?

Solution

once you create a new SQL Server object, your newly created object does not get updated in the IntelliSence Local Cache and due to this, it shows red line underneath that object. So you just need to refresh SSMS IntelliSence Local Cache and once you refresh it, IntelliSence will automatically add newly created object in the cache and the red line will disappear. try this

Edit -> IntelliSense -> Refresh Local Cache

enter image description here

or simply do

Ctrl + Shift + R

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top