来自 Windows 7 上的 64 位应用程序的 32 位文本驱动程序(Microsoft Access、Microsoft Excel 和文本文件) [英] 32-bit Text drivers (Microsoft Access , Microsoft Excel and Text files ) from a 64 bit application on windows 7

查看:26
本文介绍了来自 Windows 7 上的 64 位应用程序的 32 位文本驱动程序(Microsoft Access、Microsoft Excel 和文本文件)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我有一个使用文本 ODBC 驱动程序在 XP 上开发的应用程序.但是当我使用 Office 2007 在 Win 7 上部署时,我遇到了连接问题.

Hi i have an application developed on XP with Text ODBC drivers. But when i deployed on Win 7 with office 2007, i have connection issues.

<add key="SQLConnection.TextConnectionString" value="Driver={Microsoft Text Driver (*.txt; *.csv)};Dbq=c:Data;Extensions=asc,csv,tab,txt;Persist Security Info=False" />

ERROR [IM002] [Microsoft][ODBC Driver Manager] 未找到数据源名称且未指定默认驱动程序

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

我已经搜索了所有解决方案,例如安装以下内容

i have googled every solutions like installing the following

http://blogs.msdn.com/b/sqlblog/archive/2009/12/29/how-to-connect-to-file-based-data-sources-microsoft-access-microsoft-excel-and-text-files-from-a-64-bit-application.aspx

Microsoft Access 数据库引擎 2010 可再发行版(32 位)

Microsoft Access Database Engine 2010 Redistributable (32-bit)

2007 Office System 驱动程序:数据连接组件

2007 Office System Driver: Data Connectivity Components

毕竟,在我的数据源(ODBC)中,它仍然只显示SQL native client/SQL server/SQL server native client"

after all of those, in my datasources(ODBC), it still only shows "SQL native client/SQL server/SQL server native client"

在 C:WindowsSysWOW64odbcad32.exe 中

in the C:WindowsSysWOW64odbcad32.exe

我可以看到所有的 x32 驱动程序,但是我如何修改我的连接字符串以访问 32 位 Microsoft 文本驱动程序,或者是否有任何替代解决方案?谢谢

i can see all the x32 drivers, but how can i modify my connection strings to access 32-bit Microsoft Text Drivers or are there any alternative solutions? Thanks

推荐答案

我很确定它会自动运行(即使在 64 位机器上),只要执行进程是 32 位的.

I'm pretty sure it'll work automatically (even on a 64-bit machine) as long as the executing process is 32-bit.

尝试重新编译以专门针对 x86.

Try recompiling to target x86 specifically.

这篇关于来自 Windows 7 上的 64 位应用程序的 32 位文本驱动程序(Microsoft Access、Microsoft Excel 和文本文件)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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