How to Connect SQL Server to DBeaver

Galaxy Glossary

How do I connect Microsoft SQL Server to DBeaver?

Open DBeaver, add a new Microsoft SQL Server connection, supply the JDBC URL, credentials, and test; DBeaver will auto-install the driver, letting you run T-SQL instantly.

Sign up for the latest in SQL knowledge from the Galaxy Team!
Welcome to the Galaxy, Guardian!
Oops! Something went wrong while submitting the form.

Description

Why choose DBeaver for SQL Server?

DBeaver offers a free, multi-platform IDE with JDBC support, visual ERD, data import/export, and plug-ins that make managing SQL Server as easy as PostgreSQL or MySQL.

What do I need before connecting?

Ensure Microsoft SQL Server is reachable via TCP/IP, note the host, port (default 1433), database name, and a login with "SQL Server Authentication" or Active Directory credentials.

How do I add a new SQL Server connection in DBeaver?

Step 1: Launch New Connection Wizard

Click the plug-icon ➜ Database ➜ New Connection.

Step 2: Select Microsoft SQL Server

Type "sql" in the filter and pick "Microsoft SQL Server".

Step 3: Enter server details

Fill Host, Port, Database, User, and Password. Toggle "Save password" if desired.

Step 4: Test & download driver

Click Test Connection. DBeaver downloads the MS SQL JDBC driver automatically. A green check confirms success; press Finish.

Can I use a JDBC URL directly?

Yes. Open the Edit Driver Settings ➜ Driver Properties tab and paste a URL such as:
jdbc:sqlserver://prod-db.acme.com:1433;databaseName=shop;encrypt=true;trustServerCertificate=false

Which advanced settings matter?

Enable Auto-commit for quick DML, raise Fetch size for large exports, and activate Server Time Zone when timestamps look off.

How do I query the sample ecommerce tables?

Open a SQL Editor tab connected to shop and run the example below. Results appear in the bottom grid and can be exported to CSV or JSON.

Why How to Connect SQL Server to DBeaver is important

How to Connect SQL Server to DBeaver Example Usage


-- Top 5 customers by revenue in the last 90 days
SELECT TOP 5 c.id, c.name, SUM(oi.quantity*p.price) AS recent_revenue
FROM Orders o
JOIN Customers c  ON c.id = o.customer_id
JOIN OrderItems oi ON oi.order_id = o.id
JOIN Products p   ON p.id = oi.product_id
WHERE o.order_date >= DATEADD(day,-90,GETDATE())
GROUP BY c.id, c.name
ORDER BY recent_revenue DESC;

How to Connect SQL Server to DBeaver Syntax


JDBC URL syntax:
jdbc:sqlserver://<host>:<port>;databaseName=<database>;user=<user>;password=<password>[;encrypt=<true|false>][;trustServerCertificate=<true|false>]

Example with ecommerce DB:
jdbc:sqlserver://db.internal:1433;databaseName=shop;user=analyst;password=s3cret;encrypt=true;trustServerCertificate=false

Basic query syntax (T-SQL):
SELECT c.id, c.name, SUM(oi.quantity*p.price) AS lifetime_value
FROM Customers c
JOIN Orders o  ON o.customer_id = c.id
JOIN OrderItems oi ON oi.order_id = o.id
JOIN Products p ON p.id = oi.product_id
GROUP BY c.id, c.name;

Common Mistakes

Frequently Asked Questions (FAQs)

Does DBeaver install the SQL Server driver automatically?

Yes. The first time you create a connection, DBeaver prompts to download the Microsoft JDBC driver. Click “Download” and proceed.

Can I use Azure SQL Database?

Absolutely. Use the same wizard, enter the Azure server name, enable encrypt, and supply the login in the format user@server.

How do I share a saved connection?

Right-click the connection ➜ Export. Share the generated .dbeaver file; teammates can import it via File ➜ Import ➜ DBeaver Project.

Want to learn about other SQL terms?

Trusted by top engineers on high-velocity teams
Aryeo Logo
Assort Health
Curri
Rubie
BauHealth Logo
Truvideo Logo
Welcome to the Galaxy, Guardian!
Oops! Something went wrong while submitting the form.