SQL Server worked in VB 2003. Error in 2005

I get this error: ex.InnerException.InnerException = {"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,...

This is the return from cn.open where cn is the connection. The same line of code works fine in VN 2003. When I convert the project to VB 2005, I get this error. The database has not changed is located at a remote host and is SQL server 2000.

I know it's something stupid, but I have yet to figure it out..... Thanks in advance...
LVL 1
MisledmanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

VerminedlCommented:
That's because it deny remote connections by default. To enable it you have to follow these steps: http://blogs.msdn.com/sqlexpress/archive/2005/05/05/415084.aspx

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MisledmanAuthor Commented:
Thanks....This should help some people. I couldn't find it with a search...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.