Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLEXEC output from a UDF?
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00924838
Message ID:
00924857
Views:
31
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform