473,387 Members | 1,374 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

connecting to remote host

304 100+
hi,
I want to connect to my database located on a remote machine, what changes will i have to make in the web.config? Its currently configured to run in a medium trust mode, but still i am not able to connect.

thanks,
gomzi.
Apr 16 '07 #1
3 1146
Plater
7,872 Expert 4TB
What connection string are you using?
What type of database is it?
Is your project using a dataconnection object created by the dev-environment itself or one you created on your own?
Apr 16 '07 #2
gomzi
304 100+
What connection string are you using?
What type of database is it?
Is your project using a dataconnection object created by the dev-environment itself or one you created on your own?
i want to connect to a mysql database .
i use connector/.net and
my connection string is something like this - >
<add key="connectionstring" value="Server=xxx;Port=xxx;Database=xxx;Uid=xxx;Pw d=xxx;"/>
Apr 16 '07 #3
Plater
7,872 Expert 4TB
i want to connect to a mysql database .
i use connector/.net and
my connection string is something like this - >
<add key="connectionstring" value="Server=xxx;Port=xxx;Database=xxx;Uid=xxx;Pw d=xxx;"/>
change that connectionstring value to point to your SQL db on the other server:
<add key="connectionstring" value="Server=192.168.1.3;Port=545454;Database=xxx ;Uid=xxx;Pwd=xxx;"/>
or the like.
Also, check here:
http://www.connectionstrings.com/
http://weblogs.asp.net/wallen/archiv...22/395496.aspx

NOTE: You will also have to open up the firewalls on the computer (and possibly domain controller if you have one) AS WELL as making sure the SQL server is set to allow remote connections.
Apr 16 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: kamilla | last post by:
I have a mysql 3.5 server installed on a suse linux 8.1, with address 10.0.0.100. Now I want to access that db from a W2K pc, address 10.0.0.200. I am able to ping 10.0.0.100, but I cannot connect...
0
by: Rupe | last post by:
I have a web site on a remote, shared host with a bunch of individual Access databases. I want to switch my databases from Access to MS SQL and have some questions. I update some of my Access...
4
by: Ian Davies | last post by:
Hello all The following code allows me to connect to a local MySQL database on my pc from a VB6 project. **************************************************************************** ** Dim...
14
by: Hemant Shah | last post by:
Folks, I installed DB2 UDB 8.2 FP8 ESE on Win 2K syatem. I cataloged node and database on AIX system. When I try to connect to the database on windows system from an AIX system I get following...
1
by: Jim Bayers | last post by:
Our network nazi doesn't want us running a webserver on the server that has a connection to the campus database so we created a remote object that runs as a windows service. The windows service...
3
by: Frank Schumacher | last post by:
Hi NG, I try to connect to a remote MS-SQL-Server 2000 from an ASP.NET application. Here's how I do it: private void ConnectToDatabase(string host, string dataBaseName, string userID, string...
10
by: mairhtin o'feannag | last post by:
Hello, I'm having problems connecting to my new v9 db box. The pertinent information is below: DB2_db2inst1 60000/tcp DB2_db2inst1_1 60001/tcp DB2_db2inst1_2 60002/tcp DB2_db2inst1_END...
7
by: cyberbilly1 | last post by:
Hi All! I'm trying to connect to a remote oracle database using the OracleConnection within VB.net . Whenever I try connecting I get a SocketException:No connection could be made because the...
1
by: malooga | last post by:
Hello, I'm having a problem connecting to DB2 on a remote iSeries host from a Linux server, both of which reside on my company's internal network. I'm using the IBM Linux Client V9.1. When I try...
1
by: Lou Civitella | last post by:
I created a test web site with VS2008 using Framework 2.0. Created a database in SQL Server 2005 and am able to connect to it without any problems. I then setup the database to be accessed using a...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.