Setting up maven dependency for SQL Server

后端 未结 8 1827
小鲜肉
小鲜肉 2020-11-28 02:07

I am developing a portlet where I have Hibernate access to SQL Server database. I set up maven dependencies for it and try to find out SQL Server connector

8条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-28 02:45

    There is also an alternative: you could use the open-source jTDS driver for MS-SQL Server, which is compatible although not made by Microsoft. For that driver, there is a maven artifact that you can use:

    http://jtds.sourceforge.net/

    From http://mvnrepository.com/artifact/net.sourceforge.jtds/jtds :

    
        net.sourceforge.jtds
        jtds
        1.3.1
    
    

    UPDATE nov 2016, Microsoft now published its MSSQL JDBC driver on github and it's also available on maven now:

    
        com.microsoft.sqlserver
        mssql-jdbc
        6.1.0.jre8
    
    

提交回复
热议问题