Click here to Skip to main content
15,920,217 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
How do we find the following information of MSSQLServer in a remote machine using C++/CLI .NET (WMI, registry):

  1. Installed or not
  2. Version
  3. Status


Any help is appreciated.
Posted
Updated 16-Apr-10 3:23am
v3

1 solution

Hi,

If you know what the machine name is, when you could make use of the following method to get some information about all the SQL instances running, you could then look-up the name within the returned collection: SqlDataSourceEnumerator.GetDataSources Method [^].

You should get a collection of rows (DataTable) that has the following columns:

- ServerName
- InstanceName
- IsClustered
- Version

Kind regards,
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900