.NET ODBC DataProvider 从不通过 Transsoft ODBC 驱动程序连接

发布于 2024-07-08 23:24:56 字数 409 浏览 4 评论 0原文

我有一个用.Net 编写的Windows 服务。 在我们当前的实现中,我们与 Transoft ODBC 进行交互。 我已经实现了日志记录,基本上当我们打开 ODBC 连接时,它永远不会连接。 永远不会出错或发生任何事情。

我们已经能够通过 Access 连接到数据库,因此我们知道连接正常,并且 ODBC 驱动程序已正确设置。

我找不到实际 Connection 对象的超时,也找不到我可以调整以使连接正常工作的任何其他内容。


    Dim ODBCConn As New Data.Odbc.OdbcConnection(ConnString)
    ODBCConn.Open()

对可能发生的事情有什么想法或见解吗?

谢谢, 布赖恩·斯旺森

I've got a windows service that I've written in .Net. In our current implementation we are interfacing with a Transoft ODBC. I've got logging implemented, and basically when we open the ODBC connection it just never connects. Never errors out or anything.

We've been able to connect to the database via Access, so we know the connectivity works, and the ODBC driver is set up properly.

I can't find a timeout on the actual Connection object, or anything else I might be able to adjust to make the connection work.


    Dim ODBCConn As New Data.Odbc.OdbcConnection(ConnString)
    ODBCConn.Open()

Any thoughts or insights on what might be happening?

Thanks,
Brian Swanson

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

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

发布评论

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

评论(1

像你 2024-07-15 23:24:56

尝试以下连接:

OdbcConnection objJAMIS = new OdbcConnection("dsn=" + szDSN);

其中 szDSN 是 odbc 连接中定义的 DSN。

Try this to connect:

OdbcConnection objJAMIS = new OdbcConnection("dsn=" + szDSN);

Where szDSN is your DSN as defined in odbc connections.

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