Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

All versions SQL Server Registry Key [closed]

Is there any registry value that i could check to see if there is any version of SQL Server installed? I want to check a single value...not a value for 2005 another one for 2008 etc.

like image 788
George Taskos Avatar asked Mar 02 '26 08:03

George Taskos


1 Answers

I've had the same problem. I don't think there's a 'one stop shopping' location for this.

What really complicates this is the concept of named instances - where you can have multiple versions of sql installed on the same machine.

For example:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Inst1\MSSQLServer\CurrentVersion
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Inst2\MSSQLServer\CurrentVersion

For SQL 2008, at least, you can enumerate the list of instances at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\Instance Names\SQL

like image 68
JohnW Avatar answered Mar 04 '26 01:03

JohnW



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!