# JDBC connectivity error for SQL Server

**URL:** <https://forum.liquibase.org/t/jdbc-connectivity-error-for-sql-server/7709>\
**Category:** Uncategorized\
**Created:** [January 20, 2023, 3:42pm UTC](https://forum.liquibase.org/t/jdbc-connectivity-error-for-sql-server/7709 "2023-01-20T15:42:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SreekanthReddyU](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@SreekanthReddyU](https://forum.liquibase.org/u/SreekanthReddyU)\
**Post date:** [January 20, 2023, 3:42pm UTC](https://forum.liquibase.org/t/jdbc-connectivity-error-for-sql-server/7709/1 "2023-01-20T15:42:49Z")

</div>

I keep getting the below error from JDBC driver while trying to connect to the SQL server. Does anyone know who to resolve this?

Thank you in advance!

```
**"Unexpected error running Liquibase: liquibase.exception.DatabaseException: liquibase.exception.DatabaseException: Connection could not be created to jdbc:sqlserver://SQL.Company.com:12345;database=EIDS_ENC;encrypt=false;integratedSecurity=false;useSSL=false; with driver com.microsoft.sqlserver.jdbc.SQLServerDriver. The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed"**

```

---

<div class="post-metadata">

**Author:** ![SreekanthReddyU](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@SreekanthReddyU](https://forum.liquibase.org/u/SreekanthReddyU)\
**Post date:** [January 20, 2023, 7:53pm UTC](https://forum.liquibase.org/t/jdbc-connectivity-error-for-sql-server/7709/2 "2023-01-20T19:53:58Z")

</div>

solution mentioned here worked for me: [Unable to execute liquibase update on the new mssql dsetup](https://forum.liquibase.org/t/unable-to-execute-liquibase-update-on-the-new-mssql-dsetup/7466)
