Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Call a procedure from another SQL procedure...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00950211
Message ID:
00950213
Vues:
14
>I have a SQL stored procedure that accepts one parameter and returns one record with one field. I use it from VFP and it works great. I need to call this procedure from another SQL procedure. How do you do this since I’m not using a return in the 1st procedure? Can you give me an example?

Mike,

It would be better to return that value in an output parameter. It's easy to retrieve in VFP and in another stored procedure. See Re: Can stored procedures return values? Message #876903 for sample code. Call from VFP can be simplified, if you don't need stored procedure return value.
lnResult = SQLEXEC(lnConn ,[EXEC Proc_test 1,2, ?@lcStr])
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform