Q: Remote database connection

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

My database stays in a remote site and I have access it through VPN. I would
like connect my current Windows based Asp.Net application with this database.
What are my options? Can I connect remote database with SqlDataAdaper, will
that be slow? Should I sue Web Services to connect database?
 
The SqlClient library can connect to a remote database just fine - assuming
the necessary ports are open - namely TCP 1433

In your connection string, simply specify the IP address of the database as
the Data Source.

Karl
 
Thank you very much for the reply. Will there be any performance difference
if I call a web service and let it access the remote database?
 
hitting the database directly will likely be somewhat faster. web services
aren't particularly quick - they relly on verbose SOAP and XML. Depending
on the application, the difference might not be noticeable.

Karl
 
Yes. By definition here, the web service acts as a proxy in this scenario,
So there will be a performance hit, but it may not be noticable. You will
need to try it.
 

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

Back
Top