connection between database & website located at different places

  • Thread starter Thread starter sravan_reddy001
  • Start date Start date
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.
 
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
 
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..
 
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
 
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**
 
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.
 
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
 
Back
Top