Sometimes you need to refresh the local cache in SQL Server when writting code to remove that annoying red squiggly line.

Edit -> Intellisense - Refresh Local Cache
OR
Ctrl-Shift-R

Enjoy
Dave