你有遇到过这样的错误吗?

发布于 2024-08-14 05:23:22 字数 777 浏览 3 评论 0原文

microsoft Visual Studio 使用数据集设计器打开我的表
但我无法使用相同的连接字符串打开我的表。
我的数据库是 DBase IV。
这是连接字符串

驱动程序={Microsoft dBASE 驱动程序 (*.dbf)};整理序列=ASCII;dbq=d:\Data\88;删除=0;driverid=277;fil=dBase IV;maxbuffersize=2048;maxscanrows=8;pagetimeout=600;safetransactions=0;statistics=0;threads=3;uid=admin;usercommitsync=Yes

它是由 Visual Studio 自己制作的。
这是我的代码

DataSet1TableAdapters.AN10TableAdapter _AN10TableAdapter = new DataSet1TableAdapters.AN10TableAdapter();  
_AN10TableAdapter.Fill(D_Data.AN10);  

,这是错误

错误 [IM002] [Microsoft][ODBC 驱动程序 管理员]未找到数据源名称 并且没有指定默认驱动程序

这个真正的笑话快要杀了我。
平台:vista x64
语言:c#.net
.netframework版本:3.5
工作时间:10天

microsoft visual studio opens my table using dataset designer
but i cannot open my table using the same connectionstring.
my database is DBase IV.
and this is the connectionstring

Driver={Microsoft dBASE Driver
(*.dbf)};collatingsequence=ASCII;dbq=d:\Data\88;deleted=0;driverid=277;fil=dBase
IV;maxbuffersize=2048;maxscanrows=8;pagetimeout=600;safetransactions=0;statistics=0;threads=3;uid=admin;usercommitsync=Yes

it is made by visual studio itself.
and this is my code

DataSet1TableAdapters.AN10TableAdapter _AN10TableAdapter = new DataSet1TableAdapters.AN10TableAdapter();  
_AN10TableAdapter.Fill(D_Data.AN10);  

and this is the error

ERROR [IM002] [Microsoft][ODBC Driver
Manager] Data source name not found
and no default driver specified

this real joke is killing me.
platform:vista x64
language:c#.net
.netframework vesion:3.5
worked on it:10 days

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

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

发布评论

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

评论(2

满栀 2024-08-21 05:23:22

我猜问题是你的机器是64位的。该驱动程序是非托管组件,您的计算机上可能安装了它的单一版本(32 位或 64 位)。由于您无法在 64 位进程中加载​​ 32 位非托管组件(反之亦然),因此它不起作用。将项目的目标 CPU 设置切换为 x64 和 x86,以强制程序集以适当的位数运行并重试。它可能会解决你的问题。

I guess the issue is the 64-bitness of your machine. The driver is an unmanaged component and you probably have a single version of it (32-bit or 64-bit) installed on your machine. Since you cannot load 32-bit unmanaged components in a 64 bit process (and vice versa), it'll not work. Switch the target CPU setting of your project to x64 and x86 to force the assembly to run with the appropriate bitness and retry. It's likely to solve your problem.

呆橘 2024-08-21 05:23:22

您是否安装了 dBase 数据源?

  1. 控制面板->管理工具 ->数据源 (ODBC)
  2. 系统 DSN 选项卡

(我的操作系统是 Windows XP,但这就是想法。)

Do you have the dBase data sources installed?

  1. Control Panel -> Administrative Tools -> Data Sources (ODBC)
  2. System DSN tab

(My OS is Windows XP but that's the idea.)

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