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:
This is my connection string:
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.
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.Code:
"Provider=SQLOLEDB;Initial Catalog=serverName;Data Source=dbName;User ID=userID;Password=pass;"If anyone could provide a solution, that would be greatly appreciated. Thanks.