Is there a way to not have Intellisense default to "on" in a new query window in SSMS? - sql-server-2008-r2

I'm using SSMS (v10.50.2500.0) against a SQL Server 2008 R2 database. I have SQL Prompt installed and am tired of getting incorrectly red-lined by the built-in SSMS Intellisense whenever I open a new query window and start writing queries. Is there an option in SSMS where I can default the native Intellisense to off when a new query window is opened? I can't find it.

From the Menu system:
Tools -> Options
Then drill down to:
Text Editor -> Transact-SQL -> Intellisense
There you'll see the check box to "Enable Intellisense"

Related

Change shortcut command in MySQLWorkbench

I regularly switch between MacOS and Windows, and use Workbench on both, but Sequel Pro on my Mac also.
I find myself hitting cmd+R in Workbench on the Mac quite regularly.
I've done my homework so far and managed to disable the command by commenting out the relevant shortcut in the main_menu.xml file from this link.
Execute statement by shortcut in mysql workbench
I was wondering if there was any way that I can get the combo to execute the SQL the same way that cmd+ENTER does, but also keep cmd+ENTER?
Eg, have two shortcuts that run the same command.
It's not possible to assign more than one shortcut to a command, however you could duplicate the execute command (say, "Run Query 1" and "Run Query 2") with the two shortcuts you want, but the same command to execute. This will produce also 2 menu entries, but that's the lesser evil I believe.

DBeaver how to switch database in sql editor

I'm using DBeaver with Postgres. I can open a new sql editor with ctl+[.
But I have multiple databases in my Postgres. How can I have the sql editor run against another database? the following doesn't work
use <db name>;
select * from <table name>;
You can set a different database as active in your current connection by right-clicking in the Database Navigator pane and selecting "Set active", below I am switching from 'postgres' to my 'report_service' DB
(this is version 6.1.2, not sure about other versions)
EDIT:
I have recently upgraded to version 6.3.5 and this now has "Set as default" in the dropdown rather than "Set active" but this seems to be roughly the same behaviour
You can change the currently selected database when you create new sql tabs by selecting it from the dropdown.
When you do so be sure to double-click on the schema you want to bring into focus. Then you can open new sql editors with ctrl+].
I've found the solution.
Press Ctrl+9 and choose your destiny-base...

Is it possible to set notepad++ as a query editor in db2

I have just installed db2 on windows 8.1 and I want to run some queries. Ideally it would be easier using an editor like notepad++ to edit the queries before running them on the db2 command line as opposed to using the db2 command line. How do I set it up?
I tried this link and it did not work for me.
https://www.databasejournal.com/features/db2/article.php/10896_3316861_3/DB2-Command-Line-Processor-Tips-and-Tricks.htm

Execute LIST HISTORY in IBM Data Studio

How can I execute the DB2 command LIST HISTORY in IBM Database Studio?
Since IBM Data Studio 4.1.1 you are able to execute all DB2 commands in the SQL editor view.
Open a SQL Editor
Select Tab Configuration
Change Run Method to Command Line Processor

Removing Add-ins for SQL Server Management Studio

I have SQL server 2008 R2 installed.
In the past I have installed the Redgate Sql Promprt 5 add-in. It doesn't work anymore, but I still have the menu in the SQL Management Studio.
I don't see the add-in in the Programs and features list in windows 7, so I can't uninstall it.
When I click on a command in the menu I get this message:
The Add-in supporting this command could not be loaded. Do you wish
to remove the command?
When I choose "Yes" it removes only the selected command from the menu.
I want to completely remove the add-in from my Management Studio.
Where can I find the add-ins and where can I configure them in Management Studio 2008 R2?
If I need to remove some files to get rid of it, where could I find these files?
I looked in the installation folder and didn't find anything about add-ins...
And now for the correct answer
To remove all addin from SQL Server Management Studio. Delete all keys from:
HKEY_LOCAL_MACHINE
SOFTWARE
Wow6432Node
Microsoft
Microsoft SQL Server
100
Tools
Shell
AddIns
I didn't ask RedGate to slow down my SSMS with no way to disable it.
I had same issue under 120. It seems Addins are now stored in Program Data. I renamed file but didn't help. I had to open/run SSMS in Administrator mode and this fixed it. Later I deleted the Addin from folder "C:\ProgramData\Microsoft\SQL Server Management Studio\12.0\Addins". May be you can try renaming the Addin with "_". That was the only difference in me renaming the file and SSMS in Admin mode renaming it.
I had the same error when loading SQL Server, an Add-in from another related application was giving that error. I didn't need that Add-in, but couldn't remove it. Even removing from the registry (thanks for posting that by the way) didn't work for me. I had to uninstall and reinstall the related application (Toad for SQL Server) and the "Add-in" was no longer an issue.
I was using SSMS Tools but it kept autosaving my queries which I couldn't easily disable. Therefore I had to remove add in.