Search code examples
javasqlsql-serverjdbcmssql-jdbc

Which jar to use for connecting to MS SQL server


Can some one please guide me to understand which jar file i need to include in my application to be able to set up a jdbc connection with ms sql server.

thanks in advance.


Solution

  • sqljdbc.jar and sqljdbc4.jar class library files to be used depending on your preferred Java Runtime Environment (JRE) settings. For more information about which JAR file to choose, see System Requirements for the JDBC Driver.

    Downloads links and more information can be found here.