错误:[Microsoft] [ODBC驱动程序管理器]数据源名称未找到和指定默认驱动程序 [英] ERROR : [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified

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

问题描述

在.NET连接到Sybase服务器我得到这个错误信息:

While connecting .net to sybase server I got this error message:

[微软] [ODBC驱动程序管理器]数据源名称找不到和未指定默认驱动程序

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

此之前已经工作正常。系统DSN具有相同的细节工作,并通过vs.net数据连接也正常工作。

This has worked properly before. System DSN with same details work and data connection through vs.net also work.

我使用vs.net 2005

I am using vs.net 2005.

有什么建议?

推荐答案

如果你正在使用的X64服务器,请记住,有用于x86和x64应用程序不同的ODBC设置。管理工具列表中的数据源(ODBC)工具,把你带到x64版本。要查看/编辑86 ODBC设置,您需要手动运行该版本的工具:

If you're working with an x64 server, keep in mind that there are different ODBC settings for x86 and x64 applications. The "Data Sources (ODBC)" tool in the Administrative Tools list takes you to the x64 version. To view/edit the x86 ODBC settings, you'll need to run that version of the tool manually:

%windir%\SysWOW64\odbcad32.exe (%windir% is usually C:\Windows)

当你的应用程序运行的操作系统,我们会使用64位数据源,而当它作为x86的运行时,它会使用这些数据源来代替。

When your app runs as x64, it will use the x64 data sources, and when it runs as x86, it will use those data sources instead.

这篇关于错误:[Microsoft] [ODBC驱动程序管理器]数据源名称未找到和指定默认驱动程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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