How to make Java work with SQL Server?

前端 未结 9 1403
别那么骄傲
别那么骄傲 2020-12-13 06:23

I know this is a basic question, but I can\'t seem to find an answer and I apologize, if this question is way too stupid, but here we go:

I am supposed to work with

相关标签:
9条回答
  • 2020-12-13 07:11

    Indeed. The thing is that the 2008 R2 version is very tricky. The JTDs driver seems to work on some cases. In a certain server, the jTDS worked fine for an 2008 R2 instance. In another server, though, I had to use Microsoft's JBDC driver sqljdbc4.jar. But then, it would only work after setting the JRE environment to 1.6(or higher).

    I used 1.5 for the other server, so I waisted a lot of time on this.

    Tricky issue.

    0 讨论(0)
  • 2020-12-13 07:12

    Have you tried the jtds driver for SQLServer?

    0 讨论(0)
  • 2020-12-13 07:14

    What about the official JDBC 4.0 compatible JDBC driver from Microsoft?

    0 讨论(0)
提交回复
热议问题