日期:2014-05-18  浏览次数:20683 次

远程登录SQLSERVER问题,比较基础
我的链接语句如下:
string   strConnection= "user   id=text2;password=123; ";
strConnection+= "initial   catalog=text;Server=(60.9.20.59:8080); ";
strConnection+= "Connect   Timeout=30 ";
其中Server=(60.9.20.59:8080); ";是我自己机器的ip,如果换成local一点问题没有。我只是想试试远程登录,但是把ip写上也链接不上,会是什么原因呢

------解决方案--------------------
为什么会有个端口号8080的呢?
------解决方案--------------------
你的odbc配置時 8080 端口 有沒有開喔?
你直接Ip地址就可以了