SQL Server Management Studio – Why Won’t SSMS Remember My Tables?

sql serverssms

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?

Best Answer

You can refresh the IntelliSense cache with the key shortcut:

ctrl+shift+r

Your query window might have lost its connection as well - just:

Right click on the query window > Connection > Connect

As a little extra: This stackOverflow post discusses custom keyboard shortcuts in ssms - there's loads of custom shortcuts you can setup for anything you might need (in ssms the menu is Tools > Options > Keyboard)