NetServerEnum for sqlExpress

  • Thread starter Thread starter j-in-uk
  • Start date Start date
J

j-in-uk

I am using NetServerEnum to get a list of sqlserver databases in my c#
code. I notice it does not return sqlexpress databases. What can I use
to get a list of all sqlservers?

Thanks
 
I am using NetServerEnum to get a list of sqlserver databases in my c#
code. I notice it does not return sqlexpress databases. What can I use
to get a list of all sqlservers?

Haven't tried it myself, but if you're targeting .NET 2.0 you can try
using the SqlDataSourceEnumerator class instead and see if its result
set includes Express versions.


Mattias
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top