Detect SQL Server (Express) Existence Programmatically
At a customer’s request, I did a quick search on the web and found a few suggestions and discussions below. I tested the code provided by my colleague Parikshit Savjani more than six years. And believe it or not, it works! The sample code is available for download here.
When No SQL Server Instance Present
After SQL Server Express 2012 (64-bit) Installed
Find all instances of sql server programmatically
Programmatically checking for installation of Microsoft SQL Server 2008 Native Client
Enumerating Available Packages Programmatically
HOW TO DETECT SQL SERVER INSTANCES / FEATURES INSTALLED ON A MACHINE