title: Find all SQL Server instances on local nework
body: <p>I am trying to get all available SQL Server to name with their instance name, I am able to find all available SQL Server names on a local LAN but I am unable to find their instance names on some SQL Server</p>
  
  <p>I need SQL Server instance name because some servers have default instance and some servers have specific instance names like <code>pcname\sqlexpress</code></p>
  
  <p>I am this code to get all SQL Server instances ..</p>
  
  <pre><code> DataTable dt = System.Data.Sql.SqlDataSourceEnumerator.Instance.GetDataSources();
  </code></pre>
  
  <p>and I am getting these results ..</p>
  
  <p><img src="https://i.stack.imgur.com/l88d7.png" alt="enter image description here"></p>