Help home > Connections
Connections
Register database connections, then open tables, views, procedures and other objects from the tree on the left.
What you can do
| Task | How |
|---|---|
| Create a connection | + New connection on the top bar, or + at the top right of the tree |
| Edit, duplicate or delete a connection | Right-click the connection in the tree |
| Connect or disconnect | Click the connection in the tree (expanding it connects) / right-click → "Disconnect" |
Getting started: creating a connection (3 steps)
Open the connection dialog
Press + New connection on the top bar.Enter the type and target
Give the connection a recognizable "Connection name", choose the "Type", and fill in the host, user and so on (fields for each type). Use Test Connection to check it.Save and open it
Press Save and the connection appears in the tree. Click it to connect and show its databases and schemas.
Connection types and fields
| Type | Fields | Notes |
|---|---|---|
| SQL Server | Host, Port (1433), Database, Instance name, User, Password | If you leave Database empty, you connect to the default database (usually master) and the tree lists all databases. For Windows authentication, enter a "Domain" to connect with NTLM. Self-signed certificates are trusted by default for connections to localhost and similar. |
| PostgreSQL | Host, Port (5432), Database, User, Password | The tree lists all databases. |
| MySQL / MariaDB | Host, Port (3306), Database, User, Password | In MySQL, databases appear in the tree as schemas. |
| Oracle | Host, Port (1521), Service name, User, Password, or a connect string | If you enter a connect string (host:port/service or a TNS descriptor), it takes precedence. Oracle 12.1 or later is supported. |
| SQLite | Database file | If the file does not exist, a new one is created. |
| SQL Server Compact (.sdf) | Database file, Password, System.Data.SqlServerCe.dll | Windows only. If the runtime is not installed, specify the location of the DLL (with the amd64 folder next to it). |
| SQL Server LocalDB | Instance, .mdf file to attach, Database, ODBC driver name | Windows only. If the ODBC driver name is empty, it is detected automatically. |
| ODBC | Connection string (DSN=… etc.), User, Password | Requires the ODBC driver for the target database. |
| JDBC | JDBC URL, Driver jar, Driver class, Java executable | Requires Java 11 or later. If the Java executable is empty, the java in JAVA_HOME or PATH is used. |
SSH tunnel and SSL
SSH tunnel (SQL Server, PostgreSQL, MySQL, Oracle)
Use this when you cannot reach the database directly and must go through a bastion (SSH) server. Check "Use an SSH tunnel" and fill in the following:
| Field | Description |
|---|---|
| SSH server, SSH port | Name (or IP address) and port of the bastion server (default 22) |
| SSH user | The user that logs in to the bastion server |
| SSH authentication | Password, or Private key (a key file such as OpenSSH format; enter its passphrase if it has one) |
- In "Host" and "Port" above, enter the database location as seen from the SSH server. If the database runs on the SSH server itself, that is
localhost. - For SQL Server, specify a port number instead of an instance name. For Oracle, specify the host, port and service name instead of a connect string.
- The SSH password and key passphrase are encrypted and saved with the connection when "Save password" is on. When it is off, you are asked for them each time you connect.
- The SSH server key is recorded the first time you connect, and checked on every later connection. If it differs, the connection is refused (protection against spoofing). If the server key was replaced, press "Forget SSH Server Key" and connect again.
SSL / TLS (PostgreSQL, MySQL)
| Setting | Description |
|---|---|
| Disable | No encryption (default) |
| Enable (do not verify the certificate) | Encrypts the connection without checking the server certificate (for servers with self-signed certificates) |
| Enable (verify the certificate) | Encrypts the connection and verifies the certificate. If the certificate was issued by an internal CA, specify its PEM file in "CA certificate" |
For SQL Server, use "Encrypt (TLS)" and "Trust server certificate (self-signed)".
Common fields
| Field | Description |
|---|---|
| Group | Connections with the same group name are grouped into a folder in the tree (e.g. Production, Development). |
| Color | Colors the mark in front of the connection name and the status bar line while a tab of that connection is active. Making production connections red, for example, helps you avoid mix-ups. |
| Read-only | Blocks data-modifying SQL (INSERT, UPDATE, DELETE, CREATE, etc.) and data editing. |
| Common columns | Columns that many tables in this database have, such as created at or updated by (logical name, physical name, data type, NOT NULL, default). They are matched by physical name (case-insensitive). |
Common columns
Define, per connection, the columns that your database convention adds to every table.
- Defining them: enter them one row at a time with + Add Common Column, or use Add from Existing Table... to pick a table that already has them and check the columns to add (this connects to the database and is available only for saved connections).
- ER diagrams: "Hide common columns" on the toolbar hides the common columns and the foreign key lines that use only common columns (such as created-by ID → users).
- Creating tables: in the GUI table designer, "Add common columns" appends them to the end of the table or removes them (for log tables and the like, remove them). Turn on "Add common columns to new tables from the start" to have them added from the start.
- Duplicating a connection also copies its common column definitions (after that, each can be changed independently). A connection opened for a specific database (ID@DB) uses the definitions of the original connection.
Using the tree
- Hierarchy: connection → database (SQL Server, PostgreSQL) → schema → object type folder (Tables, Views, Stored Procedures, etc.) → object → columns and parameters. Type folders are shown even when they are empty.
- Opening objects: double-click a table to open its data, or a view to open its definition. Procedures and similar objects open their source. Right-click for "Open Data", "Open Definition", "Show DDL", "Open SELECT in SQL Tab" and more.
- Favorites: right-click a table, view, procedure or other object → "Add to Favorites..." to show it under ⭐ Favorites at the top of the tree. You can give it a display name (alias) when you add it; otherwise the original name is used. Right-click a favorite to rename, reorder or remove it. Objects in your favorites are marked with ★.
- ER diagrams: ER diagram files linked to a connection are shown under 📐 ER Diagrams below the connection. The connection settings store only the file location, and missing files are not shown. Unlink a diagram from its context menu or in the connection settings dialog (Saving ER diagrams).
- Filter: the box above the tree shows only objects whose physical or logical name contains the text you type.
- Dragging into the editor: drag a table or column name into the SQL editor to insert the name.
- Dragging into an ER diagram: drag a table (or the "Tables" folder) into an ER diagram to add it (ER diagrams).
- Stored procedures and functions: expand one to see its parameters (⇒ input, ⇐ output, ↩ return value). Right-click → "Execute..." to enter the parameters and run it (Executing stored procedures).
- Refresh: when someone else has added or changed tables, right-click → "Refresh" to reload from the database. On a connection or database it reloads everything; on a schema or a folder such as "Tables" it reloads that schema's object list and definitions; on a table it reloads the table's columns (and redraws expanded columns).
Saving passwords
When "Save password" is on, the password is encrypted with the OS credential mechanism (such as DPAPI on Windows) and saved. When it is off, you enter it each time you connect (opening another database of the same connection does not ask again).
Saved passwords cannot be moved to another PC or to the portable version as is. Export them with a passphrase as described in Moving settings.
FAQ
"The key of SSH server … differs from the one recorded on a previous connection" appears
The SSH server key you recorded differs from the one presented now. Ask the server administrator whether the key was replaced. If you are sure it was, click "Forget SSH Server Key" in the connection settings and connect again.
Cannot connect to SQL Server: "self signed certificate"
The server uses a self-signed certificate. In the connection dialog, turn on "Trust server certificate (self-signed)" or turn off "Encrypt (TLS)".
Connected to SQL Server, but no tables appear
If you do not specify a database, you connect to master. Expand the database you want in the tree (master and the like are in the "System Databases" folder).
SQL Server Compact says the runtime cannot be found
Install the SQL Server Compact 4.0 SP1 runtime (64-bit), or specify the location of System.Data.SqlServerCe.dll in the connection dialog.
▲ Back to top