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
Related
Background: In Visual Studio Code, I can do the following:
Install the .NET Interactive Notebooks extension.
Ctrl-P > .NET Interactive: Create new blank notebook Create as '.dib'
In a C# (.NET Interactive) cell, run
#r "nuget:Microsoft.DotNet.Interactive.SqlServer,*-*" and
#!connect mssql ...
In a SQL (.NET Interactive) cell, execute SQL queries against SQL Server.
Question: How can I do the same for a Postgres database?
I installed Postgresql extension in VSCode Editor. When I try to run SQL queries, it says "Language code not supported or defined". How to fix this problem?
The problem is, the code runner extension is trying to run the query, which does't support SQL queries. Try ctrl+shift+E to run the query (As available in mssql extension), or use pgsql extension, which is fixed clone of postgresql extension.
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
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"
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.