找不到JDBC/ODBC数据源名称,也未指定默认驱动程序 [英] JDBC/ODBC Data source name not found and no default driver specified

查看:96
本文介绍了找不到JDBC/ODBC数据源名称,也未指定默认驱动程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我意识到与此相关的问题很多,我已经读了最多(我不会说全部,因为那是个谎言),但似乎没有一个问题能解决我的问题.

I realise there are many question linked to this and I have read most (I won't say all because that would be a lie) of them but none seem to quite cover my problem.

我目前正在维护一个相当旧的应用程序(Java 1.4较旧),该应用程序使用odbc(据我所知)访问本地.mdb文件.

I am currently maintaining a quite old application (Java 1.4 old) that uses odbc to (from what I know) access a local .mdb file.

为此,该程序似乎使用了一个类似于构造的连接字符串:

To do so, the program seems to use a connection string like construct:

db.url = jdbc:odbc:Importer

运行它时,出现此问题标题中设置的错误.现在,为什么大多数问题似乎都不适用于我:

When running it, I get the error set in the title of this question. Now, why don't most questions seem to apply to me:

  • 我在Windows XP SP3 32位计算机上工作(将所有问题限制在64位问题所在的解决方案上)
  • 我实际上并没有通过执行来调用odbc,它只是在应用程序中运行

那么,问题还可能是什么?我确定完全相同的应用程序可以在客户的计算机上正常运行(我将其复制到我的计算机上),因此实际应用程序的配置 outside 必然存在一些问题.

So, what else could the issue be? I know for sure that the exact same application runs normally on the customer's machine (I copied it to mine), so there has to be some issue with the configuration outside of the actual application.

可能是什么?系统要求?一些注册表项?

What could it be? System requirements? Some registry entries?

推荐答案

来自 http ://www.stoneedge.com/help/OM_DOC/tips_tricks/Creating_ODBC_Connection_in_Windows.html

  • 点击开始"菜单.
  • 选择控制面板.
  • 选择管理工具",然后双击数据源(ODBC)"图标.
  • 单击系统DSN"选项卡.
  • 单击添加"按钮.
  • 从驱动程序列表中选择Microsoft Access驱动程序(* .mdb),然后单击完成"按钮.
  • 提供mdb文件...到数据库并提供名称"Importer"

这篇关于找不到JDBC/ODBC数据源名称,也未指定默认驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆