473,385 Members | 1,396 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,385 software developers and data experts.

External Connection String

KJ
This is kind of confusing. I'm trying to create a connection string to
connect to a database on another server supposely in the network.
Now if I set the Data Source = dbservername on my local computer it
works

I can ping the server by usually ping dbservername.

But when I upload my asp.net appliaction to the web server, it does
not work.

Now I'm not a network person but what do I need to do?

I have the internal ip and the host name and the port if needed.

To get it to work on my local machine. I had to setup an alias.

Please Help
Nov 18 '05 #1
8 1606
jji
what error you got ?

Jason
"KJ" <kl******@hotmail.com> wrote in message
news:d8*************************@posting.google.co m...
This is kind of confusing. I'm trying to create a connection string to
connect to a database on another server supposely in the network.
Now if I set the Data Source = dbservername on my local computer it
works

I can ping the server by usually ping dbservername.

But when I upload my asp.net appliaction to the web server, it does
not work.

Now I'm not a network person but what do I need to do?

I have the internal ip and the host name and the port if needed.

To get it to work on my local machine. I had to setup an alias.

Please Help

Nov 18 '05 #2
The question is...can the webserver ping the database server?

Find out, before responding. Ask others around you, or make a phone call to
the people who run the webserver.

Jeff

"KJ" <kl******@hotmail.com> wrote in message
news:d8*************************@posting.google.co m...
This is kind of confusing. I'm trying to create a connection string to
connect to a database on another server supposely in the network.
Now if I set the Data Source = dbservername on my local computer it
works

I can ping the server by usually ping dbservername.

But when I upload my asp.net appliaction to the web server, it does
not work.

Now I'm not a network person but what do I need to do?

I have the internal ip and the host name and the port if needed.

To get it to work on my local machine. I had to setup an alias.

Please Help

Nov 18 '05 #3
All databases are NOT created equal. What's yours?

Also, it would help if you posted the entire Connection String. Feel free to
change the names to protect the innocent, if necessary.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"KJ" <kl******@hotmail.com> wrote in message
news:d8*************************@posting.google.co m...
This is kind of confusing. I'm trying to create a connection string to
connect to a database on another server supposely in the network.
Now if I set the Data Source = dbservername on my local computer it
works

I can ping the server by usually ping dbservername.

But when I upload my asp.net appliaction to the web server, it does
not work.

Now I'm not a network person but what do I need to do?

I have the internal ip and the host name and the port if needed.

To get it to work on my local machine. I had to setup an alias.

Please Help

Nov 18 '05 #4
If you can't ping the database server from the webserver then you could add
the details of the IP Address of the databaseserver to your hosts file.
found in system32/drivers/etc

Shaun

"KJ" <kl******@hotmail.com> wrote in message
news:d8*************************@posting.google.co m...
This is kind of confusing. I'm trying to create a connection string to
connect to a database on another server supposely in the network.
Now if I set the Data Source = dbservername on my local computer it
works

I can ping the server by usually ping dbservername.

But when I upload my asp.net appliaction to the web server, it does
not work.

Now I'm not a network person but what do I need to do?

I have the internal ip and the host name and the port if needed.

To get it to work on my local machine. I had to setup an alias.

Please Help

Nov 18 '05 #5

Alright

I can ping the IP address of the dbserver from the webserver. The
server in the DMZ is not setup for internal DNS.

This is what Network support told me.

Now below is my Connectionstring

<add key="ConnectionString" value="Data Source=ABCSQL1;Initial
Catalog=MSORCLReport; User ID=bill1;Password=#Oracle1!" />

Thanks


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #6
can u please tell us the database u are trying to connect ?

suresh

"KJ" wrote:
This is kind of confusing. I'm trying to create a connection string to
connect to a database on another server supposely in the network.
Now if I set the Data Source = dbservername on my local computer it
works

I can ping the server by usually ping dbservername.

But when I upload my asp.net appliaction to the web server, it does
not work.

Now I'm not a network person but what do I need to do?

I have the internal ip and the host name and the port if needed.

To get it to work on my local machine. I had to setup an alias.

Please Help

Nov 18 '05 #7
Looks like a SQL Server Connection String offhand, although that password
has me confused. Just to be sure, what IS the database?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

"Kyle Johnson" <kl******@hotmail.com> wrote in message
news:ui**************@tk2msftngp13.phx.gbl...

Alright

I can ping the IP address of the dbserver from the webserver. The
server in the DMZ is not setup for internal DNS.

This is what Network support told me.

Now below is my Connectionstring

<add key="ConnectionString" value="Data Source=ABCSQL1;Initial
Catalog=MSORCLReport; User ID=bill1;Password=#Oracle1!" />

Thanks


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #8


Hey I figured it out. My connection string was wrong. The web server
could not resolve the server name so I had to use the IP address
followed by the port.

eX. Data Source=1.1.1.1,2300

And that worked!

Thanks

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Stephen Cook | last post by:
Having worked through the problems around enabling the document function using an XmlUrlResolver I started work on building a useful class to hide the intricacies. Trying to generalise the process...
1
by: Cybertof | last post by:
Hello, Is it possible to connect to an external (out of the lan) sql server through c# code ? I would like to connect directly my c# application to an external sql server. (i'm at home on my...
0
by: Sameers (theAngrycodeR) via .NET 247 | last post by:
I think I will get MAD very soon. Its very weired problem I amfacing here. Let me explain. I have two DBF files from which I want to export data in CSVformat. I created a desktop application and...
0
by: test.file | last post by:
We have an application that is running under Citrix. The application files are located on a shared network drive and the app is launched via UNC. The app contains WinForms that are called from...
0
by: Tom P | last post by:
I'm using System.Configuration in .NET 2.0 to load in values from an externally specified config file and deserialize them into a C# class. During deserialization, I'm getting an exception thrown...
3
by: Big Charles | last post by:
Hi, We have developed an ASP.NET web application and are planning to host it in an external Server, which provides us a good bandwidht. We need to put he web application outside because the...
5
by: jun | last post by:
Friends, I need to insert around 13000 records from a sybase external DB to one of my local table in access. I have the connection string set up and everything works fine except for the...
2
by: f rom | last post by:
----- Forwarded Message ---- From: Josiah Carlson <jcarlson@uci.edu> To: f rom <etaoinbe@yahoo.com>; wxpython-users@lists.wxwidgets.org Sent: Monday, December 4, 2006 10:03:28 PM Subject: Re: ...
1
by: ouistyty | last post by:
Hi We have a simple asp page that query LDAP attribrute. Everithing is working fine using a native domain account. but when using an external account we have an error 70, acces denie. Here's...
15
Zwoker
by: Zwoker | last post by:
Hi all, I am accessing data from an Oracle database via a connect string. I got into the situation where I wanted to write my SQL select statement to do a join between a local table sitting in...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.