Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Check sql server express 2005 or 2008 is installed
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

26 Posts

Posted - 02/11/2013 :  07:21:35  Show Profile  Reply with Quote
I am creating an application which requires installation of sql server express 2005 or 2008 to work. So my application should check whether sql server is already installed on my customer PC and if it is not installed then i have to install it through my application. So how can i check sql server is installed or not in their PC?

Flowing Fount of Yak Knowledge

2242 Posts

Posted - 02/11/2013 :  07:45:17  Show Profile  Reply with Quote
If your front-end is C#, then refer below link

Go to Top of Page

James K
Flowing Fount of Yak Knowledge

3873 Posts

Posted - 02/11/2013 :  08:52:54  Show Profile  Reply with Quote
Another alternative would be to use the ServiceController class -

It will let you check if the service is installed, and whether it is started, and if not started you will be able to start it using the methods in this class.

As for installing the SQL Express, the user will need to respond to the SQL installer dialogs and accept the license agreement. So you would need to have the user interact with the installation - it cannot be an unattended install process.
Go to Top of Page

Flowing Fount of Yak Knowledge

United Kingdom
2179 Posts

Posted - 02/12/2013 :  01:47:17  Show Profile  Visit jackv's Homepage  Reply with Quote
You could use Powershell remote registry serach -

Jack Vamvas
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.02 seconds. Powered By: Snitz Forums 2000