Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Running of the Oracle SP from VFP
Message
From
30/05/2001 06:59:46
 
 
To
29/05/2001 03:19:20
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00510968
Message ID:
00512572
Views:
10
Hi!

George Simmons seems did the trick.

>I use:
>
>SQLEXEC(handle,"{Call MyFunction()}")
>
>For example..
>
>cinit=ALLTRIM(gcinit)
>cDB=ALLTRIM(cdb)
>cMainkey=ALLTRIM(cMainkey)
>cfunction=gettable("UpdatePdmLog")
>cType=ALLTRIM(cType)
>cOldLinekey=ALLTRIM(cOldLinekey)
>cNewLineKey=ALLTRIM(cNewLineKey)
>cData=ALLTRIM(cData)
>cStatus1=ALLTRIM(cStatus1)
>cStatus2=ALLTRIM(cStatus2)
>cAdmStatus=ALLTRIM(cAdmStatus)
>cAdmStatu2=ALLTRIM(cAdmStatu2)
>cAdmCode=ALLTRIM(cAdmCode)
>
>lcSQL="{Call "+cfunction+"(?cinit,?cDB,?cType,?cMainkey,?cOldLinekey,?cNewLineKey,?cData,?cStatus1,?cStatus2,?cAdmStatus,?cAdmStatu2,?cAdmCode,?nRec)}"
>nerror=SQLEXEC(gnconnectionhandle,lcsql)
>
>
>This shows how to use bind variables which of course has performance advantages.
>
>
>In addtion:
>
>http://govt.oracle.com/~tkyte/ResultSets/index.html
>This page tells all about returning results sets.
>There is an ODBC example writen in VB
>
>However, I tried it about 6 months ago and was unable to get it to work in VFP.
>If you succeed let me know.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform