Connect to DB through proxy?
Database
1
Posts
1
Posters
0
Views
1
Watching
-
The application is running behind a proxy server which is needed for internet access. The database needed for the application is on a remote server. How can I make a connection to the database through this proxy? The browser (IE) that is set up for proxy has access to the internet that way. When I try the application from a computer that doesn't use proxy, it's working just fine. I've tried something like:
System.Net.GlobalProxySelection.Select = New System.Net.WebProxy("proxy.xxxxx.xx.xx.xx", 8080) Dim conn As SqlConnection = New SqlConnection("server=xxxx;uid=testdata;pwd=sa;database=testdb") conn.Open()
but, it doesn't work... Thank you in advance! Veljko