question

Rod avatar image
Rod asked

Why doesn't new table show up in intellisense?

I've jut created a new table in a SQL Server 2008 database. I'm trying to write a stored procedure to insert data into this new table. One of the cool features I like in SQL 2008 is the intellisence built into the T-SQL designer. Anyway, when I type INSERT INTO then the Intellisense drop down doesn't present me with my new table. Even if I type in the name of the new table the the T-SQL designer gives me an error of "invalid object". I have made sure that the permissions on the new table and any of the other old tables is identical, but only the old tables appear in the designer.

OK, so what's wrong?

sql-server-2008ssmsinsertintellisense
10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Tom Staab avatar image
Tom Staab answered

If the query window was opened before the table was created, Intellisense will not automatically know about the new table. Press CTRL-SHIFT-R to refresh the local Intellisense cache.

10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Rob Farley avatar image
Rob Farley answered

Intellisense info gets populated and stored in a cache. It doesn't query the system every time you start typing. There's an Intellisense menu in the Edit menu (I think), which will also show you that the shortcut to refresh the cache is Ctrl+Shift+R. Bear in mind that other systems will use this same shortcut (like SnagIt), which is why you should be aware of the menu item for it.

10 |1200 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.