简体   繁体   English

ODBC远程连接问题

[英]ODBC Remote connectioon problem

I'm trying to set a connection through ODBC to an SQl Server Express 2005 instance the following connection string is working fine when I use it on the same machine 我正在尝试通过ODBC设置到SQl Server Express 2005实例的连接,当我在同一台计算机上使用以下连接字符串时,它可以正常工作

Conn string: "DSN=_Vendas;TrustedSecurity = yes;"; Conn字符串:“ DSN = _Vendas; TrustedSecurity =是;”;

I have an ASP.NET application that needs to use the same connection remotel, and this fails 我有一个ASP.NET应用程序,需要使用相同的远程连接,但是失败

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

any configuration needed on SQl Server Express? SQl Server Express上需要任何配置吗? Or is anything missing in the conn string? 还是conn字符串中缺少任何内容? tks ks

PS: already set Remote connections to use TCP\\IP and named Pipes PS:已将远程连接设置为使用TCP \\ IP并命名为管道

I'd hazard a guess that you've defined the data source "_Vendas" on the 'local' machine but haven't defined it on the 'remote' machine. 我冒昧地猜测您已在“本地”计算机上定义了数据源“ _Vendas”,但尚未在“远程”计算机上定义了数据源。 Go into ODBC Administrator on the 'remote' machine and define the DSN as you've defined it on the 'local' machine and try it again. 进入“远程”计算机上的ODBC管理器,并按照在“本地”计算机上定义的DSN进行定义,然后重试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM