SQL Server: Invalid Column Name

Kamran Ahmed picture Kamran Ahmed · Sep 22, 2013 · Viewed 224.3k times · Source

I am working on modifying the existing SQL Server Stored Procedure. I added two new columns to the table and modified the stored procedure as well to select these two columns as well. Although the columns are available in the table SQL Server Keeps giving this error:

Invalid column name 'INCL_GSTAMOUNT'

enter image description here

Can anyone please tell me what's wrong here?

Answer

Ric picture Ric · Sep 22, 2013

Whenever this happens to me, I press Ctrl+Shift+R which refreshes intellisense, close the query window (save if necessary), then start a new session which usually works quite well.