List all SQL Instances on a local machine in C#
List all SQL Instances on a local machine in C#
This is just another SQL C# articles which let you learn how to make a list of names of SQL instance available on your Microsoft SQL Server using C# code.
This is made possible using Registry entries.
private IEnumerable ListLocalSqlInstances(RegistryKey hive) { const string keyName = @"Software\Microsoft\Microsoft SQL Server"; const string valueName = "InstalledInstances"; const string…
View On WordPress













