On this page
Connect to SQL Server
Add the Microsoft JDBC Driver for SQL Server once, then connect with a URL that names the server and the database.
| Driver | Not bundled: download the Microsoft JDBC Driver for SQL Server and copy its jre11 JAR into drivers. |
|---|---|
Type to choose in ADD CONNECTION or CONFIG | SQL Server |
| URL format | jdbc:sqlserver://<host>:<port>;databaseName=<database> |
| Example | jdbc:sqlserver://dbhost:1433;databaseName=Sales;encrypt=true |
| Where the URL format comes from | Microsoft Learn: Building the connection URL, checked October 17, 2026 |
| Verified with BroadSQL | Not verified with BroadSQL by the BroadSQL team: the URL format comes from Microsoft's documentation. |
Steps
- Download the driver from Microsoft's download page. The archive holds several JAR files: copy the one whose name contains
jre11(for Java 11 and later) intodrivers. Restart BroadSQL. SHOW DRIVERS;must list the Microsoft driver.ADD CONNECTION CRM_QA;(orCONFIG;on Windows), typeSQL Server, URLjdbc:sqlserver://dbhost:1433;databaseName=Sales;encrypt=true, then your SQL Server login and password.PING CRM_QA;, thenCONNECT CRM_QA;.
Properties are separated by ;. The port can be left out when it is the default, 1433.
Options people often need
- Encryption and the server certificate: since version 10.2 of the driver,
encryptistrueby default, and the driver validates the server's certificate (trustServerCertificateisfalseby default). A server without a certificate that Java trusts then refuses the connection. Microsoft's documented options are to install a valid certificate or, knowing that the certificate is then not checked, to addtrustServerCertificate=true. - A named instance: prefer the instance's port (
jdbc:sqlserver://dbhost:1435;...); otherwise;instanceName=<name>. When both are given, the port wins. - Windows integrated authentication:
integratedSecurity=trueneeds the driver's authentication DLL (mssql-jdbc_auth-<version>-<arch>.dll) on the WindowsPATH. See Building the connection URL.
On SQL Server
- DDL statements do not force a commit on SQL Server, so BroadSQL can roll them back with the transaction.
SET PASSWORDdoes not change a SQL Server password: change it in SQL Server, then update BroadSQL withEDIT CONNECTION.
Related
- Connect to your database: the common steps and what to do when it fails.
- Technical requirements
Found something wrong or unclear on this page? Tell us, with the page address.