把数据源改成IP地址,其他不变您可以用adodc控件来连接获得连接字符串

解决方案 »

  1.   

    driver={SQL Server};server=bigsmile;uid=sa;pwd=pwd;database=pubs
      

  2.   

    在客户机上装一个SQL客户端,把IP解译成机器名,或者在客户机里设置DSN。在选项里选IP连接。
      

  3.   

    cn.open "provider=MS Remote;Remote Sevrer=http://www.a.com.cn"+
    +";Remote Provider=msdasql;dsn=pubs"
    cursorlocation设成aduseclient
    cursortype=adopenstatic
    locktype=lockbatchoptimistic
    你把Remote Sevrer改成Remote Sevrer=210.29.77.10
      

  4.   

    我的意思是不用在客户端装SQLSERVER客户端软件
      

  5.   

    ip 为固定IP
    将连接串中服务器名改为[IP]即可
      

  6.   

    用ADO生成的语句为"Provider=SQLOLEDB.1;Persist Security Info=False;User ID=id;Initial Catalog=msdb;Data Source=mymis"
    无IP地址,如何确定连接的是否是我的IP地址?
      

  7.   

    设定adodc控件的connectstring属性"Provider=SQLOLEDB.1;Persist Security Info=False;User ID=id;Initial Catalog=msdb;Data Source=mydb"