Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SP returns 2 results sets, how do I retrieve them in VFP
Message
 
 
À
18/02/2003 18:10:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00754718
Message ID:
00754732
Vues:
21
This message has been marked as a message which has helped to the initial question of the thread.
Maragret,

VFP adds sequential nuber to the name of cursor. The second cursor will've name 'curOpen1'. If you don't get any cursor than something wrong with your sproc. Did you try to run it from QA?

>I have written an SQL Stored Procedure that creates two result sets and I need them both in VFP. This is not the same as sending two select commands from VFP as shown in VFP help. I can't union the results because they have completely different structures and I need to keep those structures intact when I pull the data to VFP. They must be created together because the second set uses key values from the first set to retrieve additional data. Is there any way to retrieve both the cursors in VFP? At this time I get neither cursor and the data session window is empty.
>
>
>lcCommand = "exec ap_ShippingDetailForDateRange '1000', '2000'"
>
>=SQLSetProp(lnConnect, "BatchMode", .F.)
>
>lnResult = sqlexec(lnConnect, lcCommand, 'curOpen')
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform