I have the same problem everytime I connect to SQL server through the SSMS tool. If I have been working on a script and close my laptop for a period of time, when I come back and re-connect it doesnt recognise my tables in the database I am working on. Usually I have to right click on the table name and select top 1000 rows for it to be remembered in the cache. Its a workaround which I know I dont need to do as I am missing something or not doing something correctly.
Any tips?
master
, which is common (and the default i think). When you connect to a server, you will be connected to themaster
database and thus, intellisense won't recognize those tables because they don't exists inmaster
. If you change the DB in the drop down in the top left of SSMS, you'll see your red squiggly lines disappear. This is the most common reason, assuming you haven't made DDL changes recently Otherwise, maybe your memory is flushing them out... it is a lap top.