Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Playing with ADO
Message
De
16/06/1998 17:02:07
 
 
À
16/06/1998 16:05:42
Alex Zhadanov
Computer Generated Solutions
New York City, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00108811
Message ID:
00108848
Vues:
36
I don't have a problem connection to a DSN here Maybe you should try specifying a connection String: e.g. :
    loConnection=createobject("ADODB.Connection")
    lcConnStr="PROVIDER=MSDASQL;dsn=NELSDATA;uid=;pwd=")
    loConnection.open(lcConnstr)
Also make sure you have the latest ODBC for VFP (and/or whatever backend you use) and lastly get the latest ADO DB (for example from the public beta of VJ or VID) Arnon > >Hi All! >I am trying to play with ADO inside VFP5. >Before i tested Pass Through SQL with one of the datasources. It worked fine. >I put these lines: >STORE SQLCONNECT('NELSDATA') TO gnConnHandle >= SQLSETPROP(gnConnHandle, 'asynchronous', .F.) >= SQLEXEC(gnConnHandle, 'SELECT * FROM nelslist', 'MyCursor') >and get cursor "Mycursor" with all records. >'NELSDATA' is ODBC data Source. >Than I put in command window line by line following code : >oConn = CreateObject("adodb.connection") >ors = CreateObject("adodb.recordset") >These 2 lines run OK. >But line oconn.Open("NELSDATA") gave me error: >"OLE IDispatch exception code 0 from ADODB.Connection: ?" >I have latest Personal Web server Installed on my win95,which i assume >should have ADO. >Any thoughts? >Thanks. Alex
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform