Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. sponsors. rss.
 From: Malik Aqeel
  Where is Malik Aqeel?
 Faisalabad
 Pakistan
 Malik Aqeel
 Tags
Subject: return cursor from oracle 10g
Thread ID: 205444 Message ID: 205444 # Views: 24 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: ODBC, ADO and OLEDB
Date: Friday, November 28, 2008 7:46:38 AM         
   


Dear all,

Hope you are fine and doing well.
I am trying to use oracle 10g as backend while VFP9 as frontend.

i have created oracle package having one procedure who returns
all the records in the table.it does well. now i want to limit
records to be return by parameters.following is the detail of
package and vfp code i am using.

******************************** Oracle Package ***************
create or replace package allusers_pkg as
Type curtyp is REF cursor return allusers%rowtype;
Procedure alluser (uname IN Varchar,c1 IN OUT curtyp);
End allusers_pkg;

create or replace package body allusers_pkg as
Procedure alluser (uname IN Varchar,c1 IN OUT curtyp)
is
Begin
Open c1 for
Select *from allusers where user_name=uname;
end;
End allusers_pkg;
************** end package ********************

************* vfp codes ******************
uname="abdulaqeel"
IF SQLEXEC(nconsql,"{call allusers_pkg.alluser(@uname)}","allusers")>0
SELECT allusers
BROWSE
endif
*************** End vfp code ***********************

here connection is ok.

above said does not return any value and returns error.

can some one guide me in detail what's the problem in above codes?

Regards,
Abdul Aqeel



COMPLETE THREAD
return cursor from oracle 10g Posted by Malik Aqeel @ 11/28/2008 7:46:38 AM
RE: return cursor from oracle 10g Posted by Martina Jindru @ 11/28/2008 9:30:46 AM
RE: return cursor from oracle 10g Posted by Anders Altberg @ 11/28/2008 9:57:44 AM