Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLEXEC output from a UDF?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00924838
Message ID:
00924857
Vues:
32
This message has been marked as the solution to the initial question of the thread.
>Is there a way of getting output from a scalar SQL Server udf via SQLEXEC.. not a cursor, but just a single value..
>Something that would correspond to the way we can get an output value from a stored procedure:
>SQLEXEC(nHandle,"Exec myproc ?@nOutput")

Ilmar,

Try to cal UDF this way
lnRetval = 0
lcSql =[{?@lnRetval=Call dbo.ufn_val('123')}]
lnResult = Sqlexec(lnConn , lcSql)
IF lnResult < 0
	* ODBC Error
ENDIF
? lnRetval
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform