THE SQL Server Blog Spot on the Web

Welcome to SQLblog.com - The SQL Server blog spot on the web Sign in | Join | Help
in Search

Aaron Bertrand

Why is IntelliSense not working?

I see people complain that IntelliSense (new in SQL Server 2008's Management Studio) is not working.  Most of the time, it is for one of two reasons:

  1. The object is not in the local IntelliSense cache, since it was created recently.  You can fix this easily by going to Edit > IntelliSense > Refresh Local Cache, or CTRL+SHIFT+R.
     
  2. The query window is connected to a downlevel server (e.g. SQL Server 2005), where IntelliSense does not function (see Connect #341872 from Whitney Weaver for more info and LOTS of community feedback on this decision :-)).

Little did I know, there are a number of other situations where IntelliSense will not function correctly (e.g. when you have switched to SQLCMD mode).  I was also unaware, until today, that Alan Brewer at Microsoft created a Books Online page that documents these and other cases:

When IntelliSense Is Unavailable

So many thanks for this document Alan, as I think it will help others as well.  What I'm still trying to figure out, though, is why there is a SQL Server 2005 version of the page, since IntelliSense does not exist in Management Studio for 2005, nor does it work in 2008 against 2005 instances.


Published Wednesday, July 01, 2009 3:05 PM by AaronBertrand

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Whitney Weaver said:

A timely post Aaron.  I am getting the feeling that Intellisense is quickly going down in the "be careful what you wish for" column.

July 1, 2009 3:34 PM
 

Adam Machanic said:

I was going to say that you should be happy if it's not working :-)

July 1, 2009 3:39 PM
 

Jared Ko said:

There's a space on the end of the link for "When IntelliSense Is Unavailable". Should be this: http://msdn.microsoft.com/en-us/library/ms173434.aspx.

I frequently jump between 2005 and 2008 connections and lose bracket highlighting. I'm anxious to read this link. :)

July 1, 2009 4:58 PM
 

John Clark said:

What..."I was going to say that you should be happy if it's not working :-)"

You people got to be kidding me...

Use Red-Gate SQL Prompt and you will quickly grow to love intellisense...

Just to be able to do "select * from tableA" and have it fill in the names of the columns when I want is worth the price..

So what if intellisense not perfect.. it SAVES a huge amount of time...

-jfc-

July 2, 2009 12:11 PM
 

Adam Machanic said:

Non-working Intellisense--which includes both Microsoft's and Red-Gate's implementations--wastes a lot more time than it saves. Although to be fair to RG, Microsoft's is much worse at this point in terms of getting in the way.

Microsoft's implementation autocompletes with candidates that don't make sense, greatly increasing the number of keystrokes needed in some cases (you need to back out the autocompletion).

RG's does not have that problem, but also doesn't support nearly as much--such as CTEs--and it has bugs where it will occasionally populate the candidate list with incorrect column names. It also often marks perfectly valid SQL as invalid, which does waste time. These comments, by the way, refer to the prerelease version of RG's newest offering in this space.

I hope that some vendor--RG, Microsoft, or other--will solve the Intellisense problem soon. I agree that it would save a lot of time, but the offerings today don't, and for me hurt rather than help my productivity.

July 2, 2009 12:47 PM
 

AaronBertrand said:

Adam I understand your points, and I am actually on the same side of the fence as you.  For *ME*, IntelliSense (both the native version and RG's) simply gets in the way.  But for a lot of people, the scales tip the other way... the nuisance is worth it.

July 2, 2009 7:04 PM
 

Dejan Grujic said:

One of tools that offer Intellisense for SQL Server 2005 and 2000 is our DbOctopus. Nice thing is it's free until September, so there're no reasons not to give it a shot. It's not just SQL code editor, but you can see that if you visit:

www.cogin.com/dboctopus/

July 15, 2009 6:27 PM

Leave a Comment

(required) 
(optional)
(required) 
Submit

About AaronBertrand

...about me...

This Blog

Syndication

Powered by Community Server (Commercial Edition), by Telligent Systems
  Privacy Statement