Local SQL Server Express Instance not showing up when getting datasource list - 03-21-2006 , 12:29 PM
I'm using System.Data.Sql.SqlDataSourceEnumerator in C# to get the
available servers. It doesn't seem to find any local servers but picks
up 4 others on the local network. I have both SQL Server 2005 and
Express running on my system. The Express is instance named SQLExpress
by default and I can administer the server through SQL Server
Management Studio so I know it's running and whatnot. Any idea why I'm
not seeing my local servers?
code snippet of how I'm retrieving the list:
System.Data.Sql.SqlDataSourceEnumerator m_SqlEnumerator =
System.Data.DataTable dtblDBList = new System.Data.DataTable();
dtblDBList = m_SqlEnumerator.GetDataSources();
Thanx in advance,
Re: Local SQL Server Express Instance not showing up when getting datasource list - 03-21-2006 , 12:51 PM
This might be because (by default) SSEE is not exposed. Try enabling the
SqlBrowser service. You should not need to enable the ports and protocols as
you might not want it to be visible on the LAN.
William (Bill) Vaughn
President and Founder Beta V Corporation
Microsoft MVP, Author, Mentor
<EvansJunk (AT) gmail (DOT) com> wrote
Re: Local SQL Server Express Instance not showing up when getting datasource list - 03-21-2006 , 02:07 PM
That seems to have done the trick. I'm still in the getting to know you
stage with SQLServer 2005. Currently updating some of our software to
work with it instead of MSDE and it's a bit of a learning curve to
puzzel all the new stuff out.
Re: Local SQL Server Express Instance not showing up when getting datasource list - 05-06-2007 , 06:17 AM
I found that if you want Sql Server Browser to work with full details , you
have to open port UDP 1434 on firewall, because if not, you cannot get the
details about server instance, if it is clustered, and server version.
I hope it helps.
|Thread Tools||Search this Thread|