我正在运行SQL-2008 R2 Server.
通常当我编写查询时,我会得到一个完整的IntelliSense,显示我的数据库中的所有对象.
但是现在当我执行任务时,它没有显示任何智能感知.相反,当我写对象名称时,它表明对象无效!但是,运行Query会得到正确的结果.
我关闭了管理工作室并重新启动它.现在一切正常.
我想知道实际上是错的.有任何想法吗?
可能重复:
丢失IntelliSense
我CustomerTraining在AdventureWorks数据库中调用的SQL Server 2008中创建了模式.然后创建了一个这样的表Customer:
create schema CustomerTraining
create table CustomerTraining.Customer
(
CustomerID int not null,
CustomerName nvarchar(25) not null,
TerritoryID int null,
AccountNumber nvarchar(20) not null,
CustomerType nvarchar(20) not null,
CustomerAddress nvarchar(20) not null,
CustomerPhone nvarchar(20) null,
CustomerStateCode nchar(2) null
)
Run Code Online (Sandbox Code Playgroud)
然后我开始插入一些记录:
insert into AdventureWorks.CustomerTraining.Customer
values(1,'Prateek Singh','1','A4B8934561','Internal','Anna Nagar','7418773929','TN')
Run Code Online (Sandbox Code Playgroud)
这一切都适合我,但在intellisense它没有显示AdventureWorks数据库下的CustomerTraining模式...
为什么不显示?有人可以帮忙......