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

 All Forums
 Development Tools
 ASP.NET
 how to check whether Sql Server is installed

Author  Topic 

kartik.kaveeshwar
Starting Member

18 Posts

Posted - 2008-11-06 : 04:22:23
Dear experts,
I m writing one utility in vb.net that will create database on a specified machine. But before creating the database i want to check whether sql server is installed on the remote machine or not.

How can i do it? can anybody help

cvraghu
Posting Yak Master

187 Posts

Posted - 2008-11-06 : 23:52:57
Better idea would be to check whether sql server is running on the machine which will cover both the situations. If sql server is installed and there are multiple instances, on which instance you want to create the db? What if the the particlular sql service is not up?

There are lot of samples available all over the web to check whether sql server is running or not. Please Google.
Go to Top of Page
   

- Advertisement -