Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Oracle Stored Procedures from VFP
Message
From
18/12/1998 14:05:39
Paul De Niverville
Deniverville Econometric Research Ltd.
Victoria, British Columbia, Canada
 
 
To
18/12/1998 12:59:53
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00168946
Message ID:
00168964
Views:
23
Hi Jeff,

I've called stored procedures with MS SQL Server. I think Oracle will be the same.

x = sqlconnect() && login to your database
y = sqlexec(x,'oracle_stored_proc_name '+m.parm_one)

Where m.parm_one is the vfp mem var you want to pass to Oracle.

Also you can build complete sql statements in a vfp memo field, ex. field name 'sql_code' and send the whole bunch to Oracle.

y = sqlexec(x,sql_code)

If y < 0 , check out errors by using aerror().

Gook luck,

Paul



>Hi all,
>
>We're trying to call an Oracle stored procedure from VFP and pass it parameters and get back a result set via SQL pass-through (SQLExec function). Has anyone done this succesfully and could share their syntax with me? The version of Oracle we're using is 7.3.2.1 running on UNIX and VFP 6.0 running on NT/Novell.
>
>We've succesfully implemented SQL pass-through and views for getting at Oracle tables but this stored procedure thing looks to be a bit more involved.
>
>Thanks for any and all help and happy holidays!
>
>-JT
Previous
Reply
Map
View

Click here to load this message in the networking platform