Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I execute a VFP stored procedure using SQLEXEC()/
Message
De
14/09/1998 03:22:43
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
14/09/1998 03:11:37
Jeroen Naus
Harte-Hanks Europe
Hasselt, Belgique
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00135933
Message ID:
00136048
Vues:
20
>This might work on a sql-server back-end but not if you use VFP that way.
>
>This is what I tried:
> param1 = 10
> lnResult = sqlexec(lnconnection, 'Exec getkey param1')
> IF lnResult < 0
> =AERROR(laerror)
> =aerrmsg(@laerror)
> ENDIF
> RETURN lnResult
>
>I get a command not recognized command.
Hi Jeroen,
Reading the title I get this is a stored proc call.Try this :
lnResult = sqlexec(lnConnection,"{call getkey ("+str(param1)+")}")
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform