win7 64的相同代码是可以的,对于win7 x86错误,为什么? [英] Same code for win7 64 is ok,for win7 x86 error, why?

查看:74
本文介绍了win7 64的相同代码是可以的,对于win7 x86错误,为什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 CAdoConnection连接; 
CString strConnect;
strConnect = Provider = Microsoft.ACE.OLEDB.12.0; Data Source = + m_strFilePath + ;扩展属性='Excel 12.0 XML; HDR = NO; IMEX = 1';
if (!Connection.Open(LPCTSTR(strConnect),adConnectUnspecified))
{
返回错误;
}



win7 X86错误:

描述:找不到可安装的ISAM。

状态: 3170,原生:-69141536,来源:微软Access数据库引擎



对于win7 X86,Acess数据库没问题,但是Excell无法连接。



我尝试了什么:



我多次安装AccessDatabaseEngine.exe,然后重试扩展属性='Excel 12.0 XML; HDR = NO; IMEX = 1

解决方案

好像,您的错误消息是:找不到可安装的ISAM 。请按照链接进行操作[ ^ ]来解决你的问题。



通常,你必须安装适当的Microsoft Access数据库引擎驱动程序,因为它单独存在fot x64和x86。


Jason_du写道:

strConnect = Provider = Microsoft.ACE.OLEDB。 12.0 ;数据源= + m_strFilePath + ;扩展属性='Excel 12.0 XML; HDR = NO; IMEX = 1';





您专门针对版本12.0,可能只有64位。检查您拥有的Access x86安装的版本,并查看是否可以通过专门使用该版本号来调用它。



此外,请参阅tsql - 如何解决无法找到可安装的ISAM。 OLE DB提供程序Microsoft.ACE.OLEDB.12.0的错误 - 堆栈溢出 [ ^ ]


CAdoConnection Connection;
CString strConnect;
strConnect = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + m_strFilePath +";Extended Properties='Excel 12.0 XML; HDR=NO; IMEX=1'";
if(!Connection.Open(LPCTSTR(strConnect), adConnectUnspecified))
{
return FALSE;
}


win7 X86 error:
Description: Could not find installable ISAM。
State: 3170, Native: -69141536, Source: Microsoft Access Database Engine

For win7 X86, Acess database is ok, but Excell can't connected.

What I have tried:

I have install AccessDatabaseEngine.exe many times, and retry "Extended Properties='Excel 12.0 XML; HDR=NO; IMEX=1"

解决方案

Seems, your error message is: Could not find installable ISAM. Please, follow the link[^] to resolve your issue.

In generall, you have to install proper Microsoft Access Database Engine driver, as it exists separately fot x64 and x86.


Jason_du wrote:

strConnect = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + m_strFilePath +";Extended Properties='Excel 12.0 XML; HDR=NO; IMEX=1'";



You're specifically addressing version 12.0, which may be 64 bit only. Check the version of the Access x86 installation that you have, and see if you can invoke it by specifically using that version number.

Also, see tsql - How to resolve "Could not find installable ISAM." error for OLE DB provider "Microsoft.ACE.OLEDB.12.0" - Stack Overflow[^]


这篇关于win7 64的相同代码是可以的,对于win7 x86错误,为什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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