Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error Opening ADO Recordset
Message
De
21/11/2002 23:57:13
Alhad Marathe
Asm Consulting
Mumbai, Inde
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Error Opening ADO Recordset
Divers
Thread ID:
00725619
Message ID:
00725619
Vues:
47
I am trying to upload data from VFP tables into SQL server using ADO

I can open the connection, but opening the recordset gives an error.

My code is something like this.

**
local ERR
on Error ERR = .T.
With oNewphotoRS
.ActiveConnection = oConnection
.Source = "Photographers"
.CursorLocation = adUseClient
.LockType = adLockBatchOptimistic
.CursorType = adOpenDynamic
.CommandType = adcmdTable
.Open()
EndWith
**
IF Err
WAIT WINDOW "Error opening recordset"
ENDIF
**

What I am doing wrong here. I am using VFP 7.

TIA

Alhad
Only direct experience is Knowledge;
Everything else is just Information.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform