• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 273
  • Last Modified:

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
0
Simon336697
Asked:
Simon336697
  • 4
  • 3
  • 2
2 Solutions
 
DhaestCommented:
Connection strings for SQL Server 2005
http://connectionstrings.com/sql-server-2005
0
 
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
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
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

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 4
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now