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?

more ▼

asked Dec 12, 2009 at 06:29 PM in Default

avatar image

801 48 51 55

(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first

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.

more ▼

answered Dec 12, 2009 at 07:49 PM

avatar image

Tom Staab ♦
14.5k 7 15 21

(comments are locked)
10|1200 characters needed characters left

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.

more ▼

answered Dec 12, 2009 at 08:53 PM

avatar image

Rob Farley
5.8k 16 22 28

(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.



asked: Dec 12, 2009 at 06:29 PM

Seen: 7525 times

Last Updated: Dec 13, 2009 at 12:32 PM

Copyright 2018 Redgate Software. Privacy Policy