简体   繁体   English

从域Win 7客户端到Server 2012的ODBC连接

[英]ODBC Connection from Domain Win 7 Client to Server 2012

Trying to setup an ODBC connection for UPS to access our SQL server, from our shipping client computer. 尝试设置ODBC连接,以使UPS可以从我们的运输客户端计算机访问我们的SQL Server。

I have scoured as much as I can an ran across: 我已经尽全力搜寻了:

runas /netonly /user:domain\account "c:\windows\system32\odbcad32.exe"

Now, using this method, on my current client computer, I was able to setup an odbc connection successfully using SQL Native Client 11 (5058). 现在,使用此方法,在当前的客户端计算机上,我能够使用SQL Native Client 11(5058)成功建立odbc连接。 I am using Win 10. Our shipping computer, with multiple manifest systems on it, is still using Win 7, but otherwise is setup the same on the domain. 我正在使用Win10。装有多个清单系统的运输计算机仍在使用Win 7,但在域上设置相同。

Using the same process as above, the connection ultimately times out, and states that the server is not online/not available/not allowing remote connections. 使用与上述相同的过程,连接最终超时,并指出服务器不在线/不可用/不允许远程连接。

Is there a step I'm missing? 我缺少步骤了吗? Both clients have same rules for firewall, both are using the same user/password in the runas cmd. 两个客户端都有相同的防火墙规则,都在runas cmd中使用相同的用户/密码。 The only difference between the two clients is Win 10 vs. Win 7, and the current logged in user is different (but that shouldn't matter with the runas cmd?) 这两个客户端之间的唯一区别是Win 10与Win 7,并且当前登录的用户不同(但这与runas cmd无关吗?)

Thanks! 谢谢!

So after several days/hours of trying various solutions and suggestions from all over the interwebs, I came across this solution/tips. 因此,经过几天/几小时的时间,尝试从整个Internet网络上获得各种解决方案和建议后,我遇到了这个解决方案/提示。

In SQL Server Configuration, checking the network configuration protocols/clients/aliases. 在“ SQL Server配置”中,检查网络配置协议/客户端/别名。 In my case, there was an aliases established for 32-bit, and not 64-bit. 在我的情况下,为32位而不是64位建立了别名。 I disabled the 32-bit one. 我禁用了32位。

I then found suggestions to us the ip (which I had tried in the past, with no success), but this time, after ensuring all the tcp/ip protocols were enabled and the 32-bit aliases was disabled, I was able to connect the 32-bit to the 64-bit SQL server, using the xxx.xxx.xxx.xxx address of the server. 然后,我找到了建议给我们的ip(我过去曾尝试过,但没有成功),但是这次,在确保启用了所有tcp / ip协议并且禁用了32位别名之后,我能够进行连接使用服务器的xxx.xxx.xxx.xxx地址将32位转换为64位SQL Server。

Test came back successful! 测试成功回来!

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

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