Link to home
Start Free TrialLog in
Avatar of hongjun
hongjunFlag for Singapore

asked on

vb connection string needed

How to connect to Paradox 7.0 using VB 6? I am able to connect to other (earlier) versions of Paradox but using odbc but not to 7.0.

hongjun
Avatar of Wouter Boevink
Wouter Boevink
Flag of Netherlands image

Paradox 7 doesn't include ODBC drivers, upgrade to version 8 or 9. Or by the ODBC driver from http://www.intersolv.com (website currently offline)

With mdac 2.6 you can read tables but not write to them. Maybe MDAC 2.7 from http://www.microsoft.com/data is better.
Or you can try this:

connectString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\windows\desktop\;Extended Properties=Paradox 7.x"

You have to change the datasource obviously
Avatar of Éric Moreau
Avatar of hongjun

ASKER

emoreau, the link cater for ver 5.x.

hongjun
ASKER CERTIFIED SOLUTION
Avatar of weesiong
weesiong

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of weesiong
weesiong

Sample ADO Connection Code (Never try)

Dim WithEvents adoRS As Recordset
Dim db As Connection
Set db = New Connection
db.CursorLocation = adUseClient
db.Open "PROVIDER=MSDASQL;dsn=paradox7;uid=;pwd=;"
Set adoRS = New Recordset
adoRS.Open "select * from kmzd", db, adOpenStatic, adLockOptimistic

<ping..>
Avatar of hongjun

ASKER

Experts, I am asking this question on behalf of a friend. Still waiting for her to give any reply. Her question is here https://www.experts-exchange.com/questions/20308837/Read-a-Paradox-file-urgent-pls-help.html

hongjun