Reputation: 1429
What's the easiest way to get the SSMS stored procedure editor to recognize a view update? I have a stored procedure which references a view. I added a column to the view and I added a reference to that column to the stored procedure.
The stored procedure works but the new view column reference in the stored procedure still has a red squiggly line under it with a hover message of
Invalid column name 'MyNewColumn'
I right-clicked the db in SSMS and selected "Refresh" from the context menu and re-opened the stored procedure, but the ssms error in the editor still displays.
What's the easiest way to get the SSMS stored procedure editor to recognize this view update?
Upvotes: 1
Views: 186
Reputation: 3357
You can use Ctrl+Shift+R keyboard shortcuts to refresh the IntelliSense Cache in SQL Server Management Studio.
You can also refresh the IntelliSense Cache by selecting Edit --> IntelliSense --> Refresh Local Cache
.
How to automatically refresh the SQL Server Management Studio intellisense cache?
Upvotes: 1