Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getting a return value from a SQL stored procedure.
Message
De
13/04/2005 07:15:22
 
 
À
13/04/2005 06:47:54
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:
01004088
Vues:
23
This may or may not cover it:

BOL: Returning Data Using OUTPUT Parameters

Also from BOL: How to call stored procedures (ODBC)

BR

Peter

>Hi,
>
>Can anyone give me some sample syntax for getting a return value from a Stored procedure?
>
>I am sure that Sergey has posted similar code in the past. I am sure you need to use CALL rather than EXEC in order to get the return value. This is what I have so far and it doesn't want to play ball :-
>
>
>PRIVATE nOutVal
>nOutVal = .NULL.
>
>SQLEXEC(4, "{CALL nOutVal = Claim.dbo.RepairSP_UpdateRepairOrder 261657,5002,'',NULL,NULL}")
>
>
>Any pointers?
>
>Thanks.
Peter Pirker


Whosoever shall not fall by the sword or by famine, shall fall by pestilence, so why bother shaving?

(Woody Allen)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform