我也不太清楚,不过SQL安装后,会开放一13**(具体的不清楚)的的端口,能不能利用这个

解决方案 »

  1.   

    http://expert.csdn.net/Expert/topic/1446/1446325.xml?temp=.8142206
    http://expert.csdn.net/Expert/topic/1110/1110055.xml?temp=3.101748E-02
      

  2.   

    http://www.codeproject.com/cs/combobox/serverdropdown.asp这个很全,什么服务器都可以列出来,当然你也可以只让他列SQL Server
      

  3.   

    偶得代码:前面要using SQLDMO;cbServerList.Items.Clear();try{
    SQLDMO.ApplicationClass app = new SQLDMO.ApplicationClass();
    SQLDMO.NameList list = app.ListAvailableSQLServers();
    string server;
    int count = 0;
    for(int i=0;i<list.Count;i++){
    count++;
    server = list.Item(i);
    if(server==null)continue;
    cbServerList.Items.Add(server);
    }
    if(list.Count<1)cbServerList.Items.Add("localhost");
    }
    catch{}
      

  4.   

    juqiang(方枪枪(正在修炼伤心小箭)) 
    不行呀!
    提示DMO.NameList的QueryInterface失败!
    什么意思?