Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use VFP cursor IN SPT query?
Message
De
13/09/2002 09:29:58
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00699905
Message ID:
00700140
Vues:
19
Lynda,

I've had similar situations.

I first tried passing my values from VFP to SQL by changing my cursor to an XML string, then in TSQL using OPENXML to convert that to a temporary table from which I can use in TSQL like any other SQL table. But the limitation I ran into there was the 8000 character limit on character types which I had to use to pass the XML string in as a parameter.

The solution that I ended up with is I use OPENROWSET in TSQL to get my VFP data values. While this may be repetitive, depending upon your application, it works well and there is no limit to your data size.


>Thanks, that does work for small sets of known value(s) but I need a more generic solution. There will be from 1 to several hundred PKs in the VFP cursor and their values won't be known in advance...


Anthony
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform