Click here to Skip to main content
15,913,758 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I am running following code to get all the versions of SQL Servers installed and the instances installed.

VB
Dim sqldatasourceenumerator1 As SqlDataSourceEnumerator = SqlDataSourceEnumerator.Instance
        datatable1 = sqldatasourceenumerator1.GetDataSources()


The code works fine. I have both SQL Server Express 2005 and 2008 installed.
The instances it shows

    Server Name:    Instance      Is Clustered         Version
    SUPERCOMPUTER   SQLEXPRESS  No            9.00.3042.00
SUPERCOMPUTER   CBE         No            9.00.5000.00
SUPERCOMPUTER   SQL2008TEST No            10.50.1600.1


I wonder why it does not show the default instance of SQL Server 2008, like it shows for 2005 (SQLEXPRESS)

Thanks
Posted

Hi,

Surely because there is no installation of SQL 2008 with default instance.
Installing a SQL Server instance doesn't mean you wil have a default one.

Hope this helps.
 
Share this answer
 
Your instance of MS SQL Server 2008 is: SQL2008TEST.
    Server Name:    Instance      Is Clustered         Version
SUPERCOMPUTER   SQL2008TEST No            10.50.1600.1


So, what you mean default instance of MS SQL Server 2008?
 
Share this answer
 

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