Click here to Skip to main content
15,915,777 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
:rose:
Hi I have a Windows Application program and there is a SQLServer data base in another city. And we both have high speed Internet how can i connect my application to that Server?
"My application is working well at local network with 100 computers" .
Thank you.
:rose:
Posted

So we can guess you're working in Visual Studio 2008?

This is the same as connecting to a local database: use a connection string.

If you know the IP address (or have DNS resolution) and have credentials on the remote DB server to access the database, this is all you need.

You can establish a connection to the database server from the Server Explorer in VS.

For details on connection strings (to any type of database) visit ConnectionStrings.com[^].

Cheers.
 
Share this answer
 
:rose:
Hi,Thank you for your help.Yes I'm working with VS2008.
But can you explain more and give me an example?
Because I'm new in this kind of project,And its too kind of you.
Thank you.
:rose:
 
Share this answer
 
Hi,

You need static Ip for this.

Thanks,
Himanshu
 
Share this answer
 
Comments
Tbhavesh 14-Aug-12 15:06pm    
Hi Himanshu,

I found your post on code project and need your suggestion in below situation:

I have SL 5 solution having two projects - Client code and Server side code.

I need to call third party API which can provide response in JSON/XML. I need to perform GET/DELETE/PUT and POST operations.

Now from where I should call this third party API? Client side or Server side. Due to security reasons, I guess I need to call from the server side. What should I use to call third party API - WCF or any other thing?

Any suggestion will be a great help.

Regards,
Bhavesh
thakkarbhav@hotmail.com
Hi,

First of all you need an external IP for your Remote Server. Generally, most of the servers have an external static IP. Say its XXX.XXX.XXX.XXX

So when you connect to the server you just use

Data Source=XXX.XXX.XXX.XXX;Initial catalog....

So if you can connect to the server by calling only using External IP, you can just exempt SQL Browser from firewall and access directly using its IP address.

I hope you got the point clearly.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900