Hi All,
Just picked a client who is using Pervasive with no plan to change in the near future and I have to do some VB work for them. Does anyone have an ADO connect string that they would like to share? The one I have found on the Pervasive site will not work. This is what it looks like:
Dim con As New ADODB.Connection
Dim rstH As New ADODB.Recordset
Dim sConStr As String
con.Open "PROVIDER=MSDASQL;DSN=DEMODATA"
If con.State <> adStateOpen Then
Set con = Nothing
Set rstH = Nothing
MsgBox "could not connect"
End
End If
and it goes on. But the error i get is a compile error on the MSDASQL. Anyway, if anyone has one to share, I would really appreciate it. Working with MS SQL is so much easier.
Rob
Just picked a client who is using Pervasive with no plan to change in the near future and I have to do some VB work for them. Does anyone have an ADO connect string that they would like to share? The one I have found on the Pervasive site will not work. This is what it looks like:
Dim con As New ADODB.Connection
Dim rstH As New ADODB.Recordset
Dim sConStr As String
con.Open "PROVIDER=MSDASQL;DSN=DEMODATA"
If con.State <> adStateOpen Then
Set con = Nothing
Set rstH = Nothing
MsgBox "could not connect"
End
End If
and it goes on. But the error i get is a compile error on the MSDASQL. Anyway, if anyone has one to share, I would really appreciate it. Working with MS SQL is so much easier.
Rob