I am using the below code to access my SQL server via ADO. I can only access the server on my LAN and Not the WAN. is there some way to access this via IP or what.
Thanks
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim strCn As String
Dim strAdd As String
strCn = "driver={SQL Server};" & _
"server=server;uid=sa;pwd=;database=data"
Set cn = New ADODB.Connection
With cn
.ConnectionString = strCn
.Provider = "msdasql"
.ConnectionTimeout = 60
.Open strCn
End With
DVannoy
A+,Network+,CNA
dvannoy@onyxes.com
Thanks
Dim cn As ADODB.Connection
Dim rs As ADODB.Recordset
Dim strCn As String
Dim strAdd As String
strCn = "driver={SQL Server};" & _
"server=server;uid=sa;pwd=;database=data"
Set cn = New ADODB.Connection
With cn
.ConnectionString = strCn
.Provider = "msdasql"
.ConnectionTimeout = 60
.Open strCn
End With
DVannoy
A+,Network+,CNA
dvannoy@onyxes.com