On 2014-01-17 10:39, Stephen Russell wrote:
On Fri, Jan 17, 2014 at 9:12 AM, Richard Kaye <[email protected]>
wrote:
It doesn't suck all that much. We don't have to import a whole pile of
.Net assemblies to get a row count in VFP... :-)
----------
From the MSDN web:
* Create temp stored procedure with OUTPUT parameter and call it.
SQLEXEC(m.lnConn, "CREATE PROCEDURE #MyProc @outparam int OUTPUT AS;
SELECT @outparam=100")
SQLEXEC(m.lnConn, "exec #myProc ?@lnOutput")
? m.lnOutput
* Create a temp stored procedure with INPUT and OUTPUT parameters
* and call it.
SQLEXEC(m.lnConn, "CREATE PROCEDURE #MyProc2 " + ;
"@inputparam INT, " + ;
"@outparam int OUTPUT " + ;
"AS SET @outparam=@inputparam*10")
SQLEXEC(m.lnConn, "exec #myProc2 ?lnPercent, ?@lnOutput")
? m.lnOutput
Thus you can make your sprocs and publish from VFP.
What I'm doing is having these as MySQL functions, because I have stored
routines kinda like this:
select spCalc1(parm1,parm2) as Answer1, spCalc2(parm1,parm2) as Answer2,
spCalc3(parm1,parm2) as Answer3 ...etc.
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.