Excel的ODBC和64位服务器 [英] Excel ODBC and 64 bit server

查看:348
本文介绍了Excel的ODBC和64位服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用ASP.NET我需要更新Excel模板。

using ASP.NET I need to update an excel template.

我们的服务器运行的是Windows 2008在64位模式。

Our server is running Windows 2008 in 64 bit mode.

我使用下面的code来访问Excel文件:

I am using the following code to access the excel file:

    ...
    string connection = 
@"Provider=MSDASQL;Driver={Microsoft Excel Driver (*.xls)};DBQ=" + path + ";";
    ...

如果应用程序池设置为启用32位应用程序的code按预期工作;不过,我现在用的是Oracle驱动程序失败,因为它只有64位。

IF the application pool is set to Enable 32 bit applications the code works as expected; however the oracle driver I am using fails as it is only 64 bit.

如果启用32位应用程序设置为false Excel的code失败,错误:

If Enable 32-bit applications is set to false the excel code fails with the error:

数据源名称未找到和   指定默认驱动程序

Data source name not found and no default driver specified

有什么建议?

推荐答案

Microsoft Office团队刚刚的发布 <一个href="http://www.microsoft.com/downloads/details.aspx?familyid=C06B8369-60DD-4B64-A44B-84B371EDE16D&displaylang=en"相对=nofollow> 64位驱动程序

The Microsoft Office team has just released a 64-bit driver

这篇关于Excel的ODBC和64位服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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