Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Having trouble with ADO returning an RS
Message
 
 
To
19/08/2000 13:17:23
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00407064
Message ID:
00407786
Views:
21
Many issues here.... I can see you are working with SQL Server. Right off the bat, when working with SQL Server DO NOT USE ODBC. Use OLE-DB instead.

Here is the latter code recasted:
loConn = CreateObject("ADODB.Connection")
*/ Replace the connectionstring data below with your own stuff...
With loConn
   .Connectionstring = "Provider=SQLOLEDB.1;User ID=sa;Password=foo;Initial Catalog=pubs;Data Source=(local)"
   .CursorLocation = 3
EndWith
loConn.Open
loRS   = CreateObject("ADODB.RecordSet")
With loRS
   .ActiveConnection = loConn
   .Source = "departments"
   .Open
EndWith
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform