Code
var dt = SqlDataSourceEnumerator.Instance.GetDataSources();to verify i put in CMD this "sqlcmd -L" and "osql -L" and i get the list.
so what am doing wrong, i dont know if OS matter am using Win10. Also someone know how to do this using dlls that sqlserver have?
thanks.

Praveen DhatrikaRank #3,145 · 455 reputationPosted Feb 22, 2016, 8:08 AM EST