Given:
A table named Table1
that has the following columns:
ID
ColumnA
ColumnB
Typing Table1.
in Microsoft SQL Server Management Studio provides me with a list of columns for that table.
Scenario:
I open up Table1
in the design view and add ColumnC
to it. I save Table1
and refresh it to see the new column, Column3
show up in the Object Explorer.
Going back to the Query Window, I type Table1.
but Column3
is not available to be selected. Typing it out gives me a syntax error but running a query with the column in it works as expected.
Is there a menu item somewhere that I need to click to get Intellisense to pick up the DDL changes I have made?
Select the Edit menu, select IntelliSense, then select Refresh Local Cache. Use the CTRL+Shift+R keyboard shortcut.
The first step of troubleshooting IntelliSense is to check and make sure IntelliSense is enabled in the settings. Launch SSMS and go to menu Tools >> Options. In the Options window, expand TextEditor >> Transact-SQL >> IntelliSense. Make sure Enable IntelliSense is selected.
How to Enable IntelliSense Feature in SSMS. Open SSMS, click Tools -> Options -> Expand Text Editor -> Expand Transact-SQL and click on IntelliSense as shown in the snippet below. Under Transact-SQL IntelliSense Settings ensure “Enable IntelliSense” checkbox is enabled.
On the Tools menu, click Options. Expand Text Editor, expand Transact-SQL, and then click IntelliSense.
Edit -> Intellisense - Refresh Local Cache
That should do it.
Ctrl-Shift-R is the shortcut.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With