|
-
May 5th, 2010, 07:57 AM
#1
Thread Starter
Hyperactive Member
get a list of local SQL Server 2005
plz, hw can i retrieve a list of local sql server 2005 instances on a machine with sql servers 2000, 2005 & 2008 installed?
Nobody is smarter than all of us!
-
May 5th, 2010, 08:57 AM
#2
Re: get a list of local SQL Server 2005
You can call the SqlDataSourceEnumerator.GetDataSources method and the resulting DataTable will have a Version column.
-
May 5th, 2010, 11:05 AM
#3
Thread Starter
Hyperactive Member
Re: get a list of local SQL Server 2005
 Originally Posted by jmcilhinney
You can call the SqlDataSourceEnumerator.GetDataSources method and the resulting DataTable will have a Version column.
thanks sir but an empty dataTable is returned!
Nobody is smarter than all of us!
-
May 5th, 2010, 07:49 PM
#4
Re: get a list of local SQL Server 2005
Then there are no discoverable instances. That doesn't mean that you can access by specifying their name, but you must know the name ahead of time. If you run the SQL Server Browser service then you should find that some or all instances become discoverable.
-
May 6th, 2010, 01:46 AM
#5
Thread Starter
Hyperactive Member
Re: get a list of local SQL Server 2005
 Originally Posted by jmcilhinney
Then there are no discoverable instances. That doesn't mean that you can access by specifying their name, but you must know the name ahead of time. If you run the SQL Server Browser service then you should find that some or all instances become discoverable.
then, i think sql server 2005 detection on local machine by WMI should be a good option. http://blogs.msdn.com/sqlexpress/arc...29/682254.aspx. Anyway Guys, thanks so much for your inputs
Nobody is smarter than all of us!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|