Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Oracle SP
Message
From
12/07/2000 09:59:52
Yuri Myasnikov
Bank Menatep Spb., Chelyabinsk Dep.
Chelyabinsk, Russia
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00390579
Message ID:
00391199
Views:
28
Hi!

Small correction :)


h=SQLConnect("ORADSN","USERID","PWD") && Establish a connection
IF h > 0
WAIT WINDOW "Connection Successful" NOWAIT
*
* Execute the stored procedure
*
lcId = "123456" && Passed In Proc
ldDateReport = space(10) && Passed Out Proc
lnResult=SQLExec(h,"{Call SP_MYPROC((?lcId, ?@ldDateReport) }"
if lnResult <> -1
WAIT WINDOW "Execute Successful" NOWAIT
else
WAIT WINDOW "Execute Failed" NOWAIT
endif
=SQLDisconnect(h) && Terminate the connection
ELSE
WAIT WINDOW "Connection Failed"
ENDIF

Best Regards!

Yuri.
Previous
Reply
Map
View

Click here to load this message in the networking platform