Ok, for us to help we need to know a few things:
1) Where is the SQL Server Express edition instance installed? Is it on
the same system hosting the ADO.NET program?
2) How are you trying to connect? Via the Server Explorer or the
Database Explorer?
3) Which version of VS are you using? Express or a higher version?
4) If the connection is remote, have you opened the ports on your
firewall to permit access?
5) What does your connectionstring look like?
That should be enough to get us started.
--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________
"Bob" <(E-Mail Removed)> wrote in message
news:42B307BC-755E-43A7-ABC1-(E-Mail Removed)...
>I installed SQLserver express as well as VS2005 Standard. I know the
>database
> server is functioning correctly since I can manipulate it with the
> sqlserver
> express tools. However when I try to connect to the server in VS either
> programatically or through the server tools I get the same unfortunate
> error
> message:
>
>
> {"An error has occurred while establishing a connection to the server.
> When
> connecting to SQL Server 2005, this failure may be caused by the fact that
> under the default settings SQL Server does not allow remote connections.
> (provider: Named Pipes Provider, error: 40 - Could not open a connection
> to
> SQL Server)"}
>
> I found a property on the server called Allow Remote Connections to the
> Server, which was already checked.
>
> Not really sure where to go from here. Any suggestions?
>
> Thanks,
>
> Bob
>
>