|
|
Up |
|
|
  |
Author: Ed WhiteEd White Date: Aug 26, 2008 15:11
I'm using SQL Server 2008 and I'm writing Queries in SMSS. I find that if I
add a new object (e.g. a new Table) to the database, the intellisense does
not recognize it (i.e. it puts a red underline underneath it) until I exit
SQL Server and restart it. My queries run OK even with the red underline,
but the red underline is annoying as I don't know until I run the script
whether the red underline is pointing to a real error or just hasn't updated
yet. Is there a way to refresh the intellisense without having to restart
SQL Server?
--
Ed
|
| |
|
| | 11 Comments |
|
  |
Author: Erland SommarskogErland Sommarskog Date: Aug 26, 2008 15:33
Ed White (ewhite@newsgroups.nospam) writes:
> I'm using SQL Server 2008 and I'm writing Queries in SMSS. I find that
> if I add a new object (e.g. a new Table) to the database, the
> intellisense does not recognize it (i.e. it puts a red underline
> underneath it) until I exit SQL Server and restart it. My queries run
> OK even with the red underline, but the red underline is annoying as I
> don't know until I run the script whether the red underline is pointing
> to a real error or just hasn't updated yet. Is there a way to refresh
> the intellisense without having to restart SQL Server?
As I turn off intellisense the first thing I do when I have installed
SSMS, I cannot help with the question.
But I like to point out taht SSMS != SQL Server. If you stop and start
SSMS, you do not stop and start SQL Server. SQL Server is a server
application that could be running on a different machine. And you
definitely do not have to restart SQL Server itself, to refresh the
metadata for Intellisense. In fact, I would expect it to be sufficient
to open a new query window.
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
|
| Show full article (1.38Kb) |
|
| | no comments |
|
  |
Author: Ed WhiteEd White Date: Aug 26, 2008 15:44
Actually, you are correct--I misspoke. I have to stop and restart SMSS, not
SQL Server, to refresh intellisense. I tried disconnecting and re-connecting
to SQL Server from SMSS hoping that would refresh, but it did not.
--
Ed
"Erland Sommarskog" wrote:
> Ed White (ewhite@newsgroups.nospam) writes:
>> I'm using SQL Server 2008 and I'm writing Queries in SMSS. I find that
>> if I add a new object (e.g. a new Table) to the database, the
>> intellisense...
|
| Show full article (1.71Kb) |
| no comments |
|
  |
Author: Aaron Bertrand [SQL Server MVP]Aaron Bertrand [SQL Server MVP] Date: Aug 26, 2008 16:49
Did you try opening a new query window, like Erland suggested?
On 8/26/08 6:44 PM, in article
F48C4DD1-78E8-4E69-ABE6-67880A34DAE6@ microsoft.com, "Ed White"
wrote:
> Actually, you are correct--I misspoke. I have to stop and restart SMSS, not
> SQL Server, to refresh intellisense. I tried disconnecting and re-connecting
> to SQL Server from SMSS hoping that would refresh, but it did not.
|
| |
| no comments |
|
  |
|
|
  |
|
|
  |
Author: Aaron Bertrand [SQL Server MVP]Aaron Bertrand [SQL Server MVP] Date: Aug 26, 2008 18:39
It was supposed to be "menu" (bad typo I assume)...
Edit > IntelliSense > Refresh Local Cache
Questionable place for it, but I found out about it way too late to
complain. :-\
On 8/26/08 9:22 PM, in article OzONeN#BJHA.4340@TK2MSFTNGP02.phx.gbl, "Kalen
Delaney" public_newsgroups.com> wrote:
> Aaron
>
> Do you have any idea what medu is?
|
| |
| no comments |
|
  |
|
|
  |
Author: Aaron Bertrand [SQL Server MVP]Aaron Bertrand [SQL Server MVP] Date: Aug 26, 2008 20:10
No worries. You've caught me in a few "Duh"s too. :-)
On 8/26/08 10:13 PM, in article #AWv8p#BJHA.2480@TK2MSFTNGP02.phx.gbl,
"Kalen Delaney" public_newsgroups.com> wrote:
> Duh... I thought what else it could possibly mean... and nothing came up for
> me... now it seems so obvious.
>
> thanks!
|
| |
| no comments |
|
  |
|
|
  |
Author: Mark Han[MSFT]Mark Han[MSFT] Date: Aug 27, 2008 03:26
Hello
Thank you for contacting Microsoft Online Community Support. It is Mark, a
SQL Server Engineer. I'm glad to assist you with the issue.
For this case, you indicated that the queries run OK even with the red
underline; you would like let the red underline disappear if the query is
right. Is it correct? If I misunderstand anything, please tell me directly.
It will help us to resolve this issue quickly. Once the issue resolved,
I'll appreciate your verification.
To better understand the issue, please help to confirm/collect the
following information.
1) what the queries are used to do? For example: to "select" or to create a
new table ? If it is convenient, please provide me the sample of the
queries. I would like to try to re-produce the issue.
2) please tell me the confirguration of the intellisense in detail. Some
screen-shot will be better.
|
| Show full article (3.24Kb) |
| no comments |
|
|
|
|