connection between database & website located at different places

S

sravan_reddy001

I am creating a website. where the data to be stored in my server. I
had my webspace from some service provider.
How can i connect the website and thee database.
--> website is deployed at webspace given by the provider.
--> database is at my server( located in our office).

How can i connect these website and database.
 
M

Munna

I am creating a website. where the data to be stored in my server. I
had my webspace from some service provider.
How can i connect the website and thee database.
--> website is deployed at webspace given by the provider.
--> database is at my server( located in our office).

How can i connect these website and database.

Hi..

I guess you have a real ip (public ip ) in your office expose your
database at a particular port..
Modify your web application's database connection in such a way that
it points to the database
of yours in your office.

Thanks
Masudur
 
S

sravan_reddy001

Is that enough to do that..
and is the "Modifying web app's database connection to point to
database" thing has something to do in the ASP.NET webapplication
configuration..

i mean, configuring that by pointing to databse can be done in the
application configuration??


Thanks a lot..
 
M

Munna

Is that enough to do that..
and is the "Modifying web app's database connection to point to
database" thing has something to do in the ASP.NET webapplication
configuration..

i mean, configuring that by pointing to databse can be done in the
application configuration??

Thanks a lot..

Hi.

Application developers keep Database connection string in most of the
case in application configuration file
for web application in web.config file.
you must have a connection string in web.config.
just modify the datasource

Thanks
Munna
 
S

sravan_reddy001

ok.. can someone suggest the connection string for the databae

AS SQL Server2005
database name : sample
password : helloworld
server ip address : 241.23.6.7

those details are just a sample because i can't give away actual
details..

assume port 11547 if it is required.

thanks
**Sravan**
 
J

Jordan S.

You will need for much much more to happen than configure ASP.NET and get
the right connection string. While that is necessary it is not sufficient.
In order for computers to be able to access each other over the Internet, a
lot of security configuration (at the nework) must allow for the two
computers to communicate, and routing needs to be set up correctly. It is
very much unlikely that any internet service provider would allow for their
Web servers to communicate over anything other than port 80, for example.
The connection string is your easiest task - the others are far more
challenging because what you want to do is probably not allowed by your
hosting service provider.
 
M

Munna

You will need for much much more to happen than configure ASP.NET and get
the right connection string. While that is necessary it is not sufficient.
In order for computers to be able to access each other over the Internet, a
lot of security configuration (at the nework) must allow for the two
computers to communicate, and routing needs to be set up correctly. It is
very much unlikely that any internet service provider would allow for their
Web servers to communicate over anything other than port 80, for example.
The connection string is your easiest task - the others are far more
challenging because what you want to do is probably not allowed by your
hosting service provider.

Couldn't agree more.

Its true that changing the connection string will be the easiest job
and the rest of the jobs
to support your need that is fetching data from another public ip and
behind firewall can make
your life hell. so its better that you host your database with your
hosting provider.

Thanks
Munna
 

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

Top