string query = "DECLARE l_cursor SYS_REFCURSOR;ServiceName la_service_provider_detail.service_name%TYPE;Surname people.surname%TYPE;Forename people.forename%Type;"+
"Action Varchar(50);Rate ey_pupil_premium_log.rate%Type;"+
"Funding_Code single_funding_formulas.funding_code%Type;"+
"BEGIN EYPupilPremiumPackage.GetEyPupilPremiumLog(pLogId=> 6613, pPreview => 'T',EyPupilPremiumLog=> l_cursor);"+
"LOOP"+
"FETCH :l_cursor "+
"INTO ServiceName, Surname, Forename,Action,Rate,Funding_Code;"+
/*IF l_cursor%NOTFOUND"+
Then
DBMS_OUTPUT.PUT_lINE('NO DATA FOUND');
EXIT WHEN l_cursor%NOTFOUND;
END IF;
"END LOOP;"+
"DBMS_OUTPUT.PUT_LINE(ServiceName || ' | ' || Surname || ' | ' || Forename ||'|' || Action|| '|' ||Rate|| '|' ||Funding_Code);"+ */
"CLOSE l_cursor;" +
"End; /";
var cmd = new OracleCommand(query, connection.OracleConnection);
cmd.BindByName = true;
//cmd.Parameters.Add("pLogId", OracleDbType.Int32).Value = 6613;
// cmd.Parameters.Add("pPreview", OracleDbType.Varchar2).Value ="T";
cmd.Parameters.Add("l_cursor", OracleDbType.RefCursor).Direction = ParameterDirection.Output;
cmd.ExecuteReader();
OracleDataAdapter ada = new OracleDataAdapter(cmd);
DataTable dt = new DataTable();
ada.Fill(dt);
Hi get exception on excuting as ORA-06550: line 1, column 378:\nPLS-00103: Encountered the symbol \"\" when expecting one of the following:\n\n := . ( @ % ;\nORA-06550: line 1, column 449:\nPLS-00103: Encountered the symbol \";\" when expecting one of the following:\n\n . ( , % from\nORA-06550: line 1, column 470:\nPLS-00103: Encountered the symbol \"/\" when expecting one of the following:\n\n end not pragma final instantiable order overriding static\n member constructor map"}
any idea would be helful .. tried lot..TIA