Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Having trouble with ADO returning an RS
Message
 
À
19/08/2000 13:17:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00407064
Message ID:
00407786
Vues:
22
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform