为什么错误:" [ODBC驱动程序管理器]数据源名称找不到..."? (在开发环境正常工作) [英] Why Error: "[ODBC Driver Manager] Data source name not found..."? (works fine on dev environment)

查看:273
本文介绍了为什么错误:" [ODBC驱动程序管理器]数据源名称找不到..."? (在开发环境正常工作)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到我的ASP页面的问题。这是一个登录页面,它会检查用户的凭据数据库允许进入主页之前。我创建了一个页面的调试器来找出什么是错误的详细信息,这是错误消息:

I'm encountering problems in my ASP page. This is a login page which checks the user's credentials to the database before it allows access to the main page. I created a debugger page to find out what's the error details and this is the error message:

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

这是错误消息我是遇到在Web服务器上,当我在该网站登录电子我。这里奇怪的是我的机器上本地测试页面时(台式机)的一切工作正常(甚至与IIS和MSSQL服务器)。我还使用相同的连接字符串部署和测试页面时。

That's the error message I' m encountering on the web server when I'm loging in to the site. The weird thing here is when testing the page locally on my machine (desktop) everything works fine (even with IIS and MSSQL server). I'm also using the same connection string when deploying and testing the page.

请帮忙,有什么建​​议或意见,将大大受理。

Please help, any suggestions or comments will be greatly accepted.

谢谢,
Nhoyti

Thanks, Nhoyti

推荐答案

这个问题可能是与 ODBC配置 服务器本身的上。换句话说,连接字符串[到ODBC数据源]就可以了(因为其他服务器上测试),但它引用了没有这个特殊的服务器上配置的来源。

The problem is probably with the ODBC configuration on the Server itself. In other words the connection string [to the ODBC source] is ok (since tested on other server), but it makes reference to a source that is not configured on this particular server.

要解决这个问题,打开ODBC数据源管理器(快捷方式,在管理工具菜单通常是一个),并检查是否你确实有一个源(通常是系统DSN)与找到的名称相同在连接字符串。这样的来源可能是inexistant或配置不正确。

To remedy the problem, open the ODBC Data Source Administrator (typically one of the shortcuts in the "Administrative" tools menu), and check if indeed you have a source (typically a "System DSN") with the same name found in the connection string. Such Source is probably inexistant or improperly configured.

除了性能方面的考虑,可以考虑采用更直接的数据提供程序(如MS SQL数据提供程序或Microsoft.Jet.OLEDB)在连接字符串的水平;这避免了额外的配置点(ODBC配置面板)在服务器上(但随后,这可能需要使用两个不同的连接字符串,一个用于测试环境和一个用于在生产环境...)

Aside from performance considerations, one may consider using more direct Data Providers (such as MS SQL Data Provider or Microsoft.Jet.OLEDB) at the level of the connection string; this avoids the extra configuration point (the ODBC config panel) on the server (but then this may require using two distinct connections strings, one for the test environment and one for the production environment...)

这篇关于为什么错误:" [ODBC驱动程序管理器]数据源名称找不到..."? (在开发环境正常工作)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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