Reputation: 10184
I am trying to learn Microsoft SQL server 2014. I have defined some functions and stored procedures, but SQL server intellisence does not show latest ones and underlines them as an error.
Although SQL server shows as an error when I execute it works fine. My question is why SQL server underlines the statement, even though it works.
Upvotes: 8
Views: 5026
Reputation: 60498
This will happen any time you create a new table, procedure, function, etc or modify a database object (add/remove columns on a table for example).
You just need to refresh the Intellisense cache to have it look for new objects. ctrl+shift+r
should do the trick, or use the menu option Edit > Intellisense > Refresh Local Cache
as one of the comments suggested
Upvotes: 17
Reputation: 551
To refresh the intellisense so it incorporates your latest stored procedures or table changes:
That should do it!
Upvotes: 3