External Connection String

K

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
 
J

Jeff Dillon

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
 
K

Kevin Spencer

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.
 
S

Shaun Wilde

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
 
K

Kyle Johnson

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
 
K

Kevin Spencer

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.
 
B

BillGatesFan

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top