JTDS 驱动程序是否已过时?

发布于 2024-12-23 11:25:49 字数 450 浏览 1 评论 0原文

我现在正在尝试决定使用哪个驱动程序来创建从 JavaEE 应用程序到 MS SqlServer 的数据源。

几年前,我在 JTDSSO 答案表明 JTDS 是当时的首选。

但现在我可以看到它的最新版本 1.2.5 已经两年了< /a> (2009-12-30)。

这是选择 MS 专有驱动程序的充分理由,还是 JTDS 非常好以至于不再需要任何开发? :)

I'm now trying to decide which driver to use to create a DataSource from my JavaEE application to MS SqlServer.

A couple of years ago I had good experience with JTDS, and SO answers suggest that JTDS was a preference back then.

But now I can see that its latest version 1.2.5 is two years old (2009-12-30).

Is it a good enough reason to choose MS proprietary driver, or is JTDS so good that it doesn't require any development anymore? :)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

无尽的现实 2024-12-30 11:25:49

Microsoft JDBC 驱动程序 符合 JDBC 4.0 标准,而 jTDS 则符合JDBC 3.0

这里是 JDBC 4.0 版本中引入的一些新功能和改进。

Microsoft JDBC driver is JDBC 4.0 compliant while jTDS is JDBC 3.0.

Here are some new features and improvements introduced in version 4.0 of JDBC.

野却迷人 2024-12-30 11:25:49

即使 jTDS 没有得到积极维护,人们仍然有理由更喜欢 JTDS 驱动程序而不是 Microsoft 驱动程序。

我遇到的主要问题是 jTDS 驱动程序允许对用户进行 Windows 和 SQL Server 身份验证,但 Microsoft 驱动程序需要将 DLL 文件添加到系统路径才能实现该特定功能。如果没有该 DLL 文件,则 Microsoft 驱动程序仅允许 SQL Server 身份验证。

“要使用集成身份验证,请将 mssql-jdbc_auth--.dll 文件复制到安装 JDBC 驱动程序的计算机上的 Windows 系统路径上的目录。”
(https://learn.microsoft.com/en-us/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver16)

我还没有看到关于你应该做什么的文档如果您使用的不是 Windows 系统,请执行以下操作。

Even with jTDS not being actively maintained, there are still reasons one might prefer the JTDS driver over the Microsoft driver.

The main one that I've experienced is the jTDS driver permits Windows and SQL Server authentication for the user, but the Microsoft driver requires the addition of a DLL file to the system path for that particular functionality. Without that DLL file, only SQL Server authentication is permitted with the Microsoft driver.

"To use integrated authentication, copy the mssql-jdbc_auth--.dll file to a directory on the Windows system path on the computer where the JDBC driver is installed."
(https://learn.microsoft.com/en-us/sql/connect/jdbc/building-the-connection-url?view=sql-server-ver16)

I haven't seen documentation on what you're supposed to do if you're not on a Windows system.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文