Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning values from SQL 7
Message
De
10/11/1999 12:03:48
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
Returning values from SQL 7
Divers
Thread ID:
00289653
Message ID:
00289653
Vues:
48
Hi,

I want to return values from my SQL 7 stored procs to VFP. I am aware of the rather cryptic (and undocumented as far as I can tell) syntax:

= SQLEXEC( lnHandle, '{ CALL myproc (parm1, parm2, ?@myvar) }' ) . . . which works , but ... welll - two questions ...

1) C'mon - there has GOT to be a better way than that!

2) I still see no way to get the integer return value from a SQL Stored Proc - example: if my stored proc does something along the lines of:

IF @test = 'somevalue'
RETURN 1
ELSE
RETURN 0

I see no way to retrieve that 1 or 0 into VFP without putting it into an ouput parameter, which kind of defeats the purpose of RETURNing it in the first place. I am seeking to write stored procs that work equally well and consistently whether called from VFP or within T-SQL

Any ideas on either of these questions anyone?

thanks,
Ken
Ken B. Matson
GCom2 Solutions
Répondre
Fil
Voir

Click here to load this message in the networking platform