i want to develop an application with SQL Server 2008 and Vb.Net.
my SQL server will running in one system and i want this server to be accessed by Vb application which is running in other computer (not in the same network/LAN).
my question is that,
-
Is is possible to access SQL Server Database from remote computers(which are running in different network – different part of the world) ?
-
will it require that all the computers which are accessing this server should be in running in same "Domain" ?
please help me in this.
please provide a simple vb.net code( windows form application) which will connect to Remote SQL Server Database.
Hearty thanks in advance..
Best Answer
To access a SQL database across the internet (using a non-VPN connection), you would need to use a connection string such as the following:
A few things (warnings) about the remote server:
Simple VB.NET Code is available lots of places. Here is a sample on Microsoft's site. You would use the SqlClient connection information.