Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Stored Procedue help
Message
 
 
À
06/05/2003 14:57:57
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00785533
Message ID:
00785536
Vues:
17
Try
lcSQL = [EXEC rtSearchExactflt 1, 'CALCFACT', 'CA', 'OTHERLIAB', 'OTHER', '', ?@lnPip]
>We have a stored procedure that returns a rating factor like 1.45, or 3.52
>
>This stored procedure is called from within other stored procedures on SQL 2000 and I need to get this value with a direct call to the store proc via VFP 6.0.
>
>Here is my code:
>
>
>lnPip = 0.00
>lcSQL = [EXEC rtSearchExactflt 1, 'CALCFACT', 'CA', 'OTHERLIAB', 'OTHER', '', @lnPip OUTPUT ]
>lnResult = SQLEXEC(lnHandle, lcSQL)
>
>
>Then I tried this at the suggestion of our DBA
>
>lcSQL = [EXEC rtSearchExactflt 1, 'CALCFACT', 'CA', 'OTHERLIAB', 'OTHER', '', @lnPip OUTPUT SELECT @lnPip]
>
>
>No matter what I do, I can't get the return value. If I run the command from SQL Analyzer, I get the factor immediately. How do I get it from within VFP?
>
>Thanks in advance.
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform