Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
i have a stored procedure in oracle and Sql Server 2008 same name and return same column. Oracle procedure used ref cursor. How can i use those procedure in same c# code. Two procedure but use same flatform c#.
C#
FBDataAccess fbDataAccess = new FBDataAccess();
            
            DbCommand dbCommand = null;
                dbCommand = fbDataAccess.SQLProcedure("wsp_user_RootMenu");
                fbDataAccess.FBWDatabase.AddInParameter(dbCommand, "userlevel", DbType.Int16, UserLevel);
                fbDataAccess.FBWDatabase.AddInParameter(dbCommand, "islamicYN", DbType.String, islamicYN.Trim());
                fbDataAccess.FBWDatabase.AddInParameter(dbCommand, "user_code", DbType.Int16, UserID);
                fbDataAccess.FBWDatabase.AddInParameter(dbCommand, "cv_1", DbType.Cursor);
                dbCommand.Parameters["cv_1"].Direction = ParameterDirection.Output;
             
                
                reader = fbDataAccess.ExecuteSelect(dbCommand);


Here DbType.cursor not found .
Pls help me.
Thanks.
Posted
Updated 30-Aug-15 21:02pm
v2

1 solution

Please, refer this: Oracle REF CURSORs[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900