Getting error while connecting SQL Database. How to use JDBC to connect Azure SQL Database

GeethaThatipatri-MSFT 29,017 Reputation points Microsoft Employee
2024-07-18T13:31:23.7166667+00:00

Getting error while connecting SQL Database. How to use JDBC to connect Azure SQL Database

PS - Based on common issues that we have seen from customers and other sources, we are posting these questions to help the Azure community.

Azure SQL Database
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rahul Randive 9,176 Reputation points Microsoft Employee
    2024-07-18T13:41:05.7933333+00:00

    Greetings!

    Welcome to Microsoft Q&A forum.

    You can download latest JDBC package from https://learn.microsoft.com/en-us/sql/connect/jdbc/download-microsoft-jdbc-driver-for-sql-server?view=sql-server-ver16

    For the connection string, you can refer to Building the connection URL - JDBC Driver for SQL Server | Microsoft Learn.

    For the properties in connection string, you can refer to Setting the connection properties - JDBC Driver for SQL Server | Microsoft Learn

     The class should be “com.microsoft.sqlserver.jdbc.SQLServerDriver

    Thank You!

    0 comments No comments