views:

75

answers:

2

Hi Guys,

How can I get installed sql server instances from registry? How I can determine default instance??

Thanks Rajesh

A: 

Instance list:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names
Icebob
+1  A: 

The names are located at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\InstalledInstances

The default instance is always named as MSSQLSERVER.

Rohit