Connection string to a remote Sql server 2005 box with Visual C# 2005 Express

Hi guys, Im having all sorts of issues trying to add a connection string and/or data source from my machine to a remote sql server.

Any help on this greatly appreciated.
I have attached a screendump for you guys to view.
connecting-to-remote-sqlServer.jpg
LVL 1
Simon336697Asked:
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.

DhaestCommented:
Connection strings for SQL Server 2005
http://connectionstrings.com/sql-server-2005
0

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
SriVaddadiCommented:
Could you please your environment? I mean like VS version, do you have local SQL server?

Also by default, SQL Server express does not allow remote connections. You should configure it to allow remote connections. check out these links.

http://support.microsoft.com/default.aspx?scid=kb;EN-US;914277
http://www.datamasker.com/SSE2005_NetworkCfg.htm
0
Simon336697Author Commented:
Hi guys,
Thanks so much for your help.
Here is the scenario.

My system (Windows XP with Visual C# 2005 Express) ---------> tryiing to connect to a remote system running SQL Server 2005 Enterprise edition.
0
Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

SriVaddadiCommented:
You have chosen the data source to be "SQL Server Database file" as i see from the snapshot. You should choose SQL Server which is not listed in the snapshot.

Could you tell us how you have launched the wizard in above snapshot.
0
Simon336697Author Commented:
Hi SriVaddadi,
That's my problem. I dont have that option available to select SQL Server. If I did, I would select it.
0
DhaestCommented:
You'll need to install the sql server client tools, to have the right dll's, ... for the connection to your database

How to install client tools only (Setup)
http://msdn.microsoft.com/en-us/library/aa197918(SQL.80).aspx
0
Simon336697Author Commented:
Hi Dhaest, thanks for your help, but that is for SQL Server 2000, not 2005
0
DhaestCommented:
You should be able to do this with the installation cd's of sql2005

On the components to install dialog during the setup select the option : Workstation tools, Books Online and development tools and click on the Advanced tab at the bottom.

Under the Client Components node, select the client tools which you want to install and proceed further
0
Simon336697Author Commented:
Hi Dhaest,

What im not understanding is this.
Why do I need to install these sql client tools on my machine, when all I want to to do is buld a connection string and get my C# code to do this to connect to a remote SQL Server?
0
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
C#

From novice to tech pro — start learning today.