Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Framework 4.6 Break Sql Server Discovery

$
0
0
I was trying to get list of SQL servers available in the Network using 

System.Data.Sql.SqlDataSourceEnumerator instance = System.Data.Sql.SqlDataSourceEnumerator.Instance;
System.Data.DataTable dataTable = instance.GetDataSources();

This used to work and bring all the servers in the network. However with .NET 4.6 this is not working anymore.
Windows 8.1 Professional computer I was able to remove Framework 4.6 and this fixed the issue. However on Windows 10
4.6 comes pre-installed and there is no way to uninstall it.

I have also tried SMO libraries to get list of servers and it does not work either.

DataTable servers = SmoApplication.EnumAvailableSqlServers(false);

This is not just the code I wrote. SQL Management Studio is also unable to browse server in the network. When I type
instance names or provide IP address.

Only OSQL.EXE -L seems to work.


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>