Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27508

Problem with connecting to SQL server via VPN

$
0
0
When I worked on my program at the office, I have no problems connecting to the database. I've read online, and it looks as if VPN connections should work as if you are in the office (aka no difference in code needed).
The problem is, that it does not work when I am at home. I am connected the the VPN, but it still returns the error:

Code:

[DBNETLIB][ConnectionOpen (Connect()).]SQL Server does not exist or access denied.
This is my connection string:
Code:

"Provider=SQLOLEDB;Initial Catalog=serverName;Data Source=dbName;User ID=userID;Password=pass;"
I pinged the VPN's domain name and the results came back fine. Not sure if I need to add the IP address somewhere in there, saw things about selecting the correct port, but could never find a definite answer or anything that worked.

If anyone could provide a solution, that would be greatly appreciated. Thanks.

Viewing all articles
Browse latest Browse all 27508

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>