Page 1 of 1

Detect Local SQL Server Instances

Posted: Wed Feb 20, 2008 12:24 pm
by scene316
How would I get a list of locally installed SQL Server instances? I do not want to detect all instances on the network, and I am unable to use

HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Microsoft SQL Server\\InstalledInstances

because the read registry action cannot read that key.

can you help?