Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting a return value from a SQL stored procedure.
Message
 
 
À
13/04/2005 07:36:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01004084
Message ID:
01004098
Vues:
19
What's return value from SQLEXEC()? If it's -1, what ODBC error AERROR() reports?
The Sp parameters list should be encloused in parenthessis.
BTW, why're you using hardcoded ODBC connection handle?

>This is what I have :-
>
>
>? SQLEXEC(4, [{?@nOutVal=CALL Claim.dbo.RepairSP_UpdateRepairOrder 
261657,5002,'',NULL,NULL,NULL,NULL,NULL,NULL,
0.000000,NULL,NULL,NULL,NULL,NULL,0,NULL,'',NULL,'',4,
15358,NULL,NULL,NULL,1,NULL,1,NULL}])
>
>
>However, nOutVal is staying at its initialised value ie., NULL. The stored procedure being called simply accepts the above values and the first "valid" line says :-
>
>
>RETURN -1
>
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform