Click here to Skip to main content
15,068,471 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i am make a application in i want to use a database in sql server and i wana to accesses it from a internet kindly tell me how i can write code and access it from any website which give me allow me it
i have no VPN So how i can do it
or if any other way for do this so tel me
is there any free vpn
i have a application my one city and one is other but i have no vpn so how i can access it please help me
Zoltán Zörgő 1-Feb-13 15:34pm
And what kind of server is it? A full-blow one with fixed ip address facing the internet? Can you set open ports on your firewall to access a desired service endpoint on the server from outside?
ZurdoDev 1-Feb-13 16:27pm
From the sounds of it, I don't think this is going to work out the way you want. You need to be able to access it somehow.
Muthuraja Irullandi 2-Feb-13 12:17pm
You might need a static ip address to expose that machine to the internet. Once that is done, you can access that database.

1 solution

It's all in the connection string, if your SQL Server is supposed to be accessed from an external application than all the firewall settings and whatnot should already be configured to allow you to access it. If its not publicly accessible you need to do 1 of 2 things, either get your IT department to open up the server for external access or jump through whatever hoops the IT department tells you to do so you can connect to the database. That includes, but is not limited to, connecting to the VPN, Modifying Application Logic or murdering a pixie in the name of some long forgotten deity.

After that take a look here:[^]

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