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...
Related
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.
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 am testing MySQL Workbench as I could gather from the docs one way to launch MySQL from Windows Command Line as per:
http://dev.mysql.com/doc/mysql-windows-excerpt/5.0/en/windows-start-command-line.html is to look for the file installed with MySQL called "mysqld"
Now I could find the .exe file "mysqld", however when I double click it flashes and disappears.
Any idea or suggestions?
I am able to launch MySQL from its own icon, but not from the file above mentioned.
Using workbench 6.1 community
You are totally confusing the MySQL server (which mysqld.exe is) and MySQL Workbench (MySQLWorkbench.exe, another application). The MySQL command line client (which is totally independent of MySQL Workbench) can be started by opening a command window (cmd.exe) and running mysql from there (not mysqld). But as this is independent from MySQL Workbench (which is just another client, even though a much more sophisticated one), you need to call the MySQL Workbench executable if you want to run it. If you do that from a command prompt it will spit out a number of parameters you can use.
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"
Using Visual SourceSafe's "Open SourceSafe Database..." command, there is an option at the bottom of the dialog to "Open this database next time I run Visual SourceSafe."
Typically, when checking this box the most recent opened VSS DB is opened immediately upon launching VSS (even if it's a second instance of VSS running).
I'm seeing this option not respected. All launches of VSS result in the same DB being opened at launch.
Removing all the registry entries under HKLM\Software\Microsoft\SourceSafe\Databases and HKCU\Software\Microsoft\SourceSafe\Databases doesn't help.
Additionally, the HKCU\Software\Microsoft\Sourcesafe\Current Database value was accurately pointing to the DB I wanted to be opened, but not the DB that was VSS was actually opening. Same with the similar value under HKLM.
An environment variable had been set to force that particular database.
When SSDIR is set, the VSS dialog option is ignored.
Clearing the SSDIR variable fixed the issue.