ADO Connection

W

Weste

I am tring to connect to our SQL database via VBA code. I am using the
format below:
Set cnn = New ADODB.Connection
cnn.Open "Provider=sqloledb;" & _
"Data Source=yourServerName;" & _
"Initial Catalog=yourDatabaseName;" & _
"User ID=userid;" & _
"Password=password;"

I've replaced yourServerName etc with the appropriate values. It seems I am
having problems connecting because I am behind a firewall using VPN. Does
anyone know how to modify the connection string for this circumstance?
Thanks for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top