Hi... I have created a function in oracle as shown below:
I need to call it from my asp.net page... How can i do so?
create or replace function fun_GeneratePaper(strDisciplineId IN CHAR,
iNoOfQuestions IN integer)
return sys_refcursor as
r1 sys_refcursor;
begin open r1 for select getguid() tmp,
QuestionNo,QuestionText,
Option1,Option2,
Option3,Option4,
Correctanswer,Disciplineid
from tbliffcoQuestionmaster
where DisciplineId=strDisciplineId
AND rownum <= iNoOfQuestions ;
return(r1);
end;