如何让 Management Studio Express 使用代理设置连接到在线 SQL 服务
当尝试连接到 SQL Server 2005 时,SQL Management Studio Express 2005 似乎没有考虑为 LAN 定义的 Internet 选项代理设置。
有没有办法让它使用代理设置?
It doesn't seem like SQL Management Studio Express 2005 considers Internet Options proxy settings defined for the LAN when trying to connect to SQL Server 2005.
Is there a way to make it use the proxy settings?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简短的回答:你不知道。
据我所知,SQL Server 几乎所有流量都使用 TCP 1433,因此典型的网络代理无论如何都不允许您连接 - 您需要一个更复杂的代理来支持诸如 SOCKS
假设您确实有合适的代理可用,您可以尝试使用 Proxifier 之类的应用程序来强制 SQL Management Studio使用 SOCKS 连接。
作为后备方案,如果您的 Web 代理允许 CONNECT 方法,您也许能够与其他地方的服务器建立连接以充当中间人。例如,您可以尝试使用 SSH 来隧道 TCP 1433,并将其路由到您托管的 SQL 数据库。
注意:我从未真正尝试过上述设置,因此它可能不起作用,或者您可能会遇到其他问题。也就是说,这个建议是合理的,你应该能够让它发挥作用。
Short Answer: You don't.
As far as I know, SQL Server uses TCP 1433 for pretty much all the traffic, hence a typical web proxy will not allow you to connect anyway - you need a more sophisticated proxy that supports something like SOCKS for example.
Assuming that you did have an appropriate proxy available, you could try using an app like Proxifier to force SQL Management Studio to use the SOCKS connection.
As a fallback, if your web proxy allows the CONNECT method, you might be able to establish a connection to a server elsewhere to act as a middle-man. You could try using SSH for example to tunnel TCP 1433, and have it route it to your hosted SQL database.
Note: I have never actually tried the above setup, so it may not even work or there may be other issues you encounter. That said, the advice is sound and you should be able to make it work.