I need to get all the SQL Server instances on a specific machine. This machine is a virtual machine. I have tried using SqlDataSourceEnumerator and SmoApplication::EnumAvailableSqlServers with no luck.
I am using .NET (Visual C++) to try get the available instances on the network so it is C++ related.
With SQL, you can only get the instances of the current DB you are connected to, not the instances running on each machine on the network (Unless there is some magical way the DB devs i know don't know about).
SqlDataSourceEnumerator and EnumAvailableSqlServers is used to programmatically get the SQL instances, however i think that since its a virtual machine on the network, they are not getting picked up.