Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Playing with ADO
Message
From
16/06/1998 17:02:07
 
 
To
16/06/1998 16:05:42
Alex Zhadanov
Computer Generated Solutions
New York City, New York, United States
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00108811
Message ID:
00108848
Views:
37
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform