SQL Server 2008 R2 intellisense doesn't work - sql-server

The SQL Server 2008 R2 Management Studio intellisense stopped working a month ago though it is enabled. I read that this issue may be caused by the .NET framework 4.0 SP1 and tried some of the suggestions but nothing worked:
I have installed the cumulative update package: SQLServer2008R2_RTM_CU7_2507770_10_50_1777_x64
I re-registered the TextMgrP.dll
Any other suggestions what can be done?
The SSMS version is: Microsoft SQL Server Management Studio 10.50.1617.0

Make sure you are connected to SQL Server 2008 Edition. IntelliSense does not work with the previous versions of SQL Server.
IntelliSense should be enabled. There are two ways to verify whether IntelliSense is enabled or not. a) From Toolbar b) Go to Tools -> Options -> Text Editor -> Transact-SQL -> IntelliSense
IntelliSense should be refreshed with the latest changes in database. a) Press CTRL+SHIFT+R b) Go to Edit -> IntelliSense -> Refresh Local Cache
Go to Tools -> Options -> Text Editor -> Transact-SQL -> General -> IntelliSense Select Auto List Members and Check Parameter Information.

I got the same problem.
For me the only thing it works was to select the database manually from the source code.
I just add
use MYDATABASE;
GO
Im my case it looks like that the source code couldn't be associated to a default database.

Related

Intellisense not working in sql server 2014 for azure database but working when connected to local DB

I recently upgraded my SSMS 2014 Express to SP1 and then after up-gradation, IntelliSense is not working when I connect to my Azure database.
But when I connect to my local DB it works fine.
I've tried below options also but didn't resolve the issue.
Under Tools -> Options -> Text Editor -> Transact-SQL -> IntelliSense it says it is enabled there.
Under Edit -> IntelliSense -> Refresh Local Cache
Go to Tools >> Options >> Text Editor >> Transact-SQL >> General >> IntelliSense
Select Auto List Members and Check Parameter Information.
Intellisense not working in SSMS 2014
Intellisense not working SSMS 2014
All the above options I've tried in my SSMS 2014 but still, I'm facing the issue.
See below image, when I connect to Azure DB IntelliSense option in disabled.

Foreach ADO Enumerator doesn't show ADO object source variable

I have like 1 hour of SSIS experience so I do not know why this is failing.
I am following this guide.
However when I get to the Foreach loop editor screen section and pick "Foreach ADO enumerator" I cannot see the ADO Object source variable section.
The screen should look like this
Any ideas?
I am using Visual Studio 2015 and a release candidate of SSDT so this may be an issue.
I have followed all steps correctly and have seen no errors in previous steps
I had the same issue; here's how I solved it:
If your package was developed in SQL 2014:
Right click Solution in Solution Explorer of Data Tools ->
Properties -> Configuration Properties -> General -> Change Target Version.
The SSIS ADO Enumerator was blank for me too.
For the latest version of SSDT [Release 17.0] [Build 14.0] the Project Level default TargetServerVerion is SQL Server vNext. That doesn't work.
Changing this to any other value was the fix for me.
Solution Explorer Window -> Right-click Project -> Properties -> Configuration Properties -> General -> TargetServerVersion = SQL Server 2016
I searched for this issue and i found two simple suggestions:
Try running visual studio in Safe mode using this command (this issue can be caused by a third-party add-on)
devenv.exe /safemode
Try repairing your SQL Server Data Tools installation or Download the Latest release

Intellisense is not working in SQL Server 2014

Intellisense is not working in Microsoft SQL Server 2014, it was working fine in Microsoft SQL Server 2012 but once I installed 2014 it is not working.
Under Tools -> Options -> Text Editor -> Transact-SQL -> IntelliSense it says it is enabled there.
I have also tried refeshing the IntelliSense cache with Ctrl-Shft-R but that doesn't work.
From my personal experience, SSMS IntelliSense is a pure crap, sometimes it works, sometimes it doesn't. I'd go for third party tools.
If you're willing to spend your cash, I'd recommend Redgate SQL Prompt.
If you need a free product, try dbForge SQL Complete, it's not as good as SQL Prompt, but does a decent job.
Perform following steps:
Under Edit -> IntelliSense -> Refresh Local Cache
Restart SSMS.Then try
After Refreshing local cache, if still not working, then try to delete temporary file of OS. for me it's work, I hope this will fix your's issue as well.
I am with SQL Server Management Studio 2014 and this working "Just hit Ctrl+Shift+R to force SSMS to refresh its cache." – Panagiotis Kanavos

I have no option to create new sql server database in vs2013

I installed SQL server 2012 and I have been using it with vs2012. For some reason, now that I have installed vs2013, if I go to "Create New SQL server database...", the option is grayed out.
Just to clarify:
I go to the server explorer tag -> right click data connections. In that list of options the "Create New SQL Server Database..." option is on the list but it is grayed out. Is it necessary for me to link vs2013 to it in some way? I may have done this as part of the original SQL server 2012 installation but I do not want to mess up that setup inadvertently.
Edit: It may (or may not) be worth mentioning that I can actually create Databases for vs2013 projects with vs2012. It is mainly a matter of it being awkward and just incorrect.
An out-of-date of VS2012 SQL Server Data Tools can cause conflict with built in tools for VS2013. Download the latest version of Microsoft SQL Server Data Tools.

SQL Server Management Studio 2008 R2 Developer Edition intellisense not working

I installed Developer edition of SQL Server 2008 R2 and find out intellisense is not working or show as other developer talking about.
Is there anything else I need to do to get intellisense working in SQL Server Management Studio?
What I do to get it to work?
Maybe you need to "refresh" the intellisense cache.
3) IntelliSense should be refreshed
with the latest changes in database.
a) Press CTRL+SHIFT+R b) Go to Edit >>
IntelliSense >> Refresh Local Cache
Full list of things to make sure of:
Connected to SQL Server 2008 edition
Intellisense enabled
Intellisense refreshed
Correct settings for "Statement completion"
Check here for a complete instructions with screenshots.
If you have recently installed Visual Studio 2010 SP1 you may be encountering a bug. Microsoft has confirmed that VS 2010 SP1 effectively breaks intellisense in SQL Management Studio.
Here are a couple of options you can try:
DevArt's SQL Complete -$0 free
RedGate's SQL Prompt - $195 <-You can find it at red-gate.com.
First and foremost you must be working with a SQL Server 2008+ instance, for the server to be able to give you the metadata for intellisense.
It is a fine art making intellisense work for you.
The first thing you can to do make it recognize the database context is to put
USE databasename;
at the top of your query window. This gives it a better grasp of where you are working.
The next thing you need to get used to is to write your queries in a different order, fill in the FROM clause first, so the skeleton should be something like
SELECT ^
FROM tblname
or
UPDATE tblname
SET ^
At the position marked ^, intellisense will have a good idea of what db/table context you are working in.
UPDATE a
SET a.^
FROM tblname a, tbl2 b
Without fully specifying the join condition, just listing the tables as above allows intellisense to work with a.
There are many other tricks, such as if you renamed objects, you're best off to start a new query window or disconnect from the server completely and reconnect, or even restarts SSM Studio.
Other reading:
http://www.techrepublic.com/blog/datacenter/using-intellisense-in-sql-server-2008/446
http://blog.sqlauthority.com/2009/03/31/sql-server-2008-intellisense-does-not-work-enable-intellisense/
You also need to be talking to at least a 2008 server.

Resources