Skip to content
Guide · DBeaver

How to Connect DBeaver to SQL Server

DBeaver connects to SQL Server through the Microsoft JDBC driver. The connection itself is a short form, but encryption defaults, named instances and disabled TCP/IP cause most failures. This guide follows DBeaver's documented steps and Microsoft's documentation for the server side.

Steps and facts checked 8 October 2026 against the vendor's official documentation. Versions covered: DBeaver Community 26.2.2; SQL Server 2025 and earlier; Microsoft JDBC Driver for SQL Server 10.2 and later behaviour. Next review due April 2027. Menus, shortcuts and prices change between releases; check the vendor's documentation for your version.
Short answer
  • Choose the SQL Server driver for SQL Server 2012 and later; DBeaver keeps an older jTDS-based driver for earlier versions.
  • Enter Host, Port (default 1433), Database/Schema and an authentication method, then select Test Connection and Finish.
  • Recent Microsoft JDBC drivers encrypt by default and validate the server certificate; a self-signed certificate fails unless you trust it, import it, or tick Trust Server Certificate for development servers.
  • Remote connections need TCP/IP enabled in SQL Server Configuration Manager, and named instances on dynamic ports rely on the SQL Server Browser service (UDP 1434).
How we know: Research-based: DBeaver steps and fields were checked against the DBeaver documentation (Create connection, Microsoft SQL Server, SSH configuration, SSL configuration), and driver and server behaviour against Microsoft Learn pages for the Microsoft JDBC Driver for SQL Server, network protocols and the SQL Server Browser service on 8 October 2026. We have not made these connections for this guide; labels may vary by DBeaver version.

Create the DBeaver SQL Server connection

DBeaver's SQL Server documentation says it supports all versions of SQL Server, provided you pick the right driver: SQL Server for SQL Server 2012 and newer, and SQL Server (Old driver, jTDS) for older versions. Azure SQL, Babelfish via TDS and Google Cloud SQL for SQL Server have their own entries in the driver list.

  1. Select the New Connection Wizard button or press Ctrl+Shift+N.
  2. Select SQL Server and select Next.
  3. With Connect by set to Host, enter the Host, the Port (1433 by default) and the database in Database/Schema.
  4. Choose an Authentication method. DBeaver's list includes SQL Server Authentication, Windows Authentication, Kerberos, NTLM and several Microsoft Entra ID (Active Directory) methods. For SQL Server Authentication, enter the login and password.
  5. Decide on Trust Server Certificate (see the next section) and, if you want, tick Show All Schemas; otherwise only non-empty schemas are shown.
  6. Select Test Connection, then Finish.
SQL Server fields on the DBeaver Main tab (from the DBeaver SQL Server documentation)
FieldWhat to enter
HostServer name or IP address; localhost for a local or tunnelled server
Port1433 by default; the instance's fixed port for a named instance
Database/SchemaThe database to open, for example master or mydb
AuthenticationSQL Server Authentication, Windows Authentication, Kerberos, NTLM or a Microsoft Entra ID method
Trust Server CertificateTrust the server TLS certificate without validating it (development only)
Show All SchemasShow empty schemas as well as non-empty ones

Encryption and the Trust Server Certificate option

According to Microsoft's documentation for the JDBC driver, the encrypt property defaults to true from driver version 10.2, where earlier versions defaulted to false. With encryption on and trustServerCertificate false, the driver validates the server's TLS certificate. A server that uses a self-signed certificate, which is common on development machines, therefore fails validation.

DBeaver exposes this as Trust Server Certificate. Its documentation explains that when it is true the certificate is trusted automatically, and when it is false the Microsoft driver validates the certificate and terminates the connection if validation fails. For production servers, keep validation on and add the server's CA certificate to DBeaver's truststore instead. Microsoft also notes that a mismatch between the server name you connect to and the name in the certificate produces an error, so connect using the name the certificate was issued for.

Named instances, TCP/IP and SSH tunnels

Enable TCP/IP. Not every network protocol is enabled by SQL Server Setup. Microsoft documents the steps: in SQL Server Configuration Manager, expand SQL Server Network Configuration, select Protocols for <instance name>, right-click the protocol and select Enable, then restart the SQL Server service. For a named instance, including SQL Server Express, restart the SQL Server Browser service too.

Named instances. A named instance often uses a dynamic port. The SQL Server Browser service listens on UDP port 1434 and tells clients which TCP port the instance is using. In the Microsoft JDBC URL format, a port number takes precedence over an instance name, and Microsoft recommends setting the port for named instances to avoid an extra round trip. The simplest reliable setup in DBeaver is to give the instance a fixed port and enter that port on the Main tab.

SSH tunnel. For a SQL Server reachable only from a bastion host, select the plus button in the connection dialog, choose SSH, fill in the SSH host, port 22, user and authentication method, and select Test tunnel configuration. DBeaver forwards a local port to the database port for host-based connections; URL-based connections need the ports set manually.

Common DBeaver SQL Server connection errors

The SQL Server messages behind most failed connections have their own pages in our error library:

For client-side details, open Window, Show View, Error Log in DBeaver.

Frequently asked questions

What port does DBeaver use for SQL Server?

The port on the Main tab, 1433 by default. Named instances often use a different, sometimes dynamic, port; give the instance a fixed port and enter it in DBeaver.

Can DBeaver use Windows Authentication with SQL Server?

Windows Authentication is one of the methods in DBeaver's SQL Server authentication list, alongside Kerberos and NTLM. Microsoft's JDBC documentation describes integrated security as using the Windows credentials of the signed-in user on Windows operating systems; on macOS or Linux, Kerberos is the usual route to domain logins.

Is it safe to tick Trust Server Certificate?

It disables certificate validation, so the connection is encrypted but the server's identity is not checked. That is acceptable for a local development server, not for production; import the server's CA certificate instead.

Does DBeaver support Azure SQL Database?

Yes. DBeaver lists Azure SQL Server as a separate driver entry, and documents Microsoft Entra ID authentication for SQL Server connections.

Should I use DBeaver or SSMS for SQL Server?

SSMS is Microsoft's own tool with deeper SQL Server administration features; DBeaver suits people who also work with other engines. See our DBeaver vs SSMS comparison.

Sources

Checked 8 October 2026.

How we research tool guides: our editorial method. CodeWithSQL earns nothing from the vendors mentioned.

Still choosing a SQL client?

Read the full reviews, or compare tools side by side.