I want to write a program that allows user to select one SQL Server instances in an network. How can I list available instances in a C# program?
Addition questions: How can I know that a database is currently mirroring? Is there a way to know what instance is it's partner and it's witness?
Thank you very much!