Instances aren't supported

Mar 24, 2009 at 8:39 AM
Hi,

nice work you've done yesterday.

following suggestion i can give for supporting instance names

file: frmDBTools.cs

        private string getIpFromServer(string sServername)
        {
            if(sServername.Contains(@"\"))
            {
                sServername = sServername.Substring(0, sServername.IndexOf(@"\"));
                IPHostEntry ip = Dns.GetHostByName(sServername);
                IPAddress[] IpA = ip.AddressList;
                return IpA[0].ToString();
            
            }
            else
            {
                //To get a host with a www address
                IPHostEntry ip = Dns.GetHostByName(sServername);
                IPAddress[] IpA = ip.AddressList;
                return IpA[0].ToString();
            }
        }
Coordinator
Mar 24, 2009 at 9:25 AM
Edited Mar 24, 2009 at 9:25 AM
Hi,

I copied your code to my file and it's working...thank you!