Using JTDS driver [closed]

 ̄綄美尐妖づ 提交于 2019-12-03 02:48:05

I've used the JTDS driver in production for around a year without any problems.

However, in your case, if you've got a system that been built and tested with the MS JDBC driver, then you really ought to stick to that.

In the meantime, conduct some tests and see if you can collect hard figures that show JTDS outperforming MS JDBC for your use cases. If the data back up these assertions, then come up with a plan to start using JTDS in your development and test cycles, finally rolling it out to your production release.

We are using jTDS drivers for about an year. As of today, I can tell the following:

Pros:

  • Smaller JAR.
  • ResultSets are faster. Fetching is configurable.
  • Caches huge results on disk (MS driver requires you to use slow bidirectional cursors or caches results on memory, yielding occasional OutOfMemoyErrors).
  • Documentation is small but enough (MS driver documentation is spread in hundreds of MSDN pages).
  • Better error reporting (always a nice SQLException, while MS driver sometimes gives ClassCastException or other RuntimeException).
  • Open source.

Cons:

  • Bad support, due to:
    • Relatively small user base, giving bad community support.
    • Not backed by a big company, so if you need some solution fast, you must hope the developers are available and willing to help (and remember they are not paid for answering forums messages).
  • Because MS SQL Server protocol has many proprietary parts, MS can perform changes that break jTDS when you apply maintenance updates on the server.
  • Not as up-to-date as the MS driver. When MS launches a new SQL Server version, the JDBC drivers are usually released together. jTDS must work to catch up and that may take months.

Close to release, no.

Do it later, yes.

JTDS has benefits over the MS one such as you can use a domain service account for your SQL connection and supports encrpyted SSL.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!