title: SqlDataSourceEnumerator.Instance.GetDataSources() does not locate local SQL server 2008 instance
body: <p>I use the following code to list all the remote and local SQL Server instances:</p>
  
  <pre><code>public static void LocateSqlInstances()
    {
       using( DataTable sqlSources = SqlDataSourceEnumerator.Instance.GetDataSources())
       {
          foreach(DataRow source in sqlSources.Rows )
          {
             string instanceName = source["InstanceName"].ToString();
  
             if (!string.IsNullOrEmpty(instanceName))
             {
                Console.WriteLine(" Server Name:{0}", source["ServerName"]);
                Console.WriteLine("   Instance Name:{0}", source["InstanceName"]);
                Console.WriteLine("   Version:{0}", source["Version"]);
                Console.WriteLine();
             }
          }
          Console.ReadKey();
       }
    }
  </code></pre>
  
  <p>running the code on my local machine. The code can find and list a SQL server express instance (version 9.0.5000) installed but failed to list the other SQL server instance (version 10.0.1600).</p>
  
  <p>I've done a lot of research on the Internet and made sure that (1) the Sql Browser is running and (2) the UDP port 1434 is open.</p>
  
  <p>Anybody knows why? Thanks.</p>