Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Help me with this Pl/Sql procedure (ORACLE 9i) call from asp.net

Help me with this Pl/Sql procedure (ORACLE 9i) call from asp.net

Scheduled Pinned Locked Moved ASP.NET
databasecsharpasp-netoraclehelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    solami
    wrote on last edited by
    #1

    this is my stored procedure in oracle, am using oracle client, cmd.parameter.add() to RETURN the value of the parameter but its not working. PROCEDURE "SCOTT"."PROCEDURE2" ( "PARAM1" IN NUMBER, "PARAM2" out VARCHAR2) IS varEname VARCHAR2(40):='xxx'; varComm REAL; varSalary CONSTANT NUMBER:=1000; comm_missing EXCEPTION; BEGIN SELECT ENAME, COMM INTO varEname, varComm FROM EMP WHERE EMPNO = param1 ;---7369; IF varComm IS NULL THEN RAISE comm_missing; else dbms_output.put_line('Commision is ' || varcomm ); END IF; param2:=varEname; dbms_output.put_line(param2); EXCEPTION WHEN comm_missing THEN dbms_output.put_line('Commision is NULL'); WHEN no_data_found THEN dbms_output.put_line('Employee Does not Exist'); END "PROCEDURE2"; I need to retrieve the value of param2 inside my Asp.net code. Please help me with Ideas. Salami

    V 1 Reply Last reply
    0
    • S solami

      this is my stored procedure in oracle, am using oracle client, cmd.parameter.add() to RETURN the value of the parameter but its not working. PROCEDURE "SCOTT"."PROCEDURE2" ( "PARAM1" IN NUMBER, "PARAM2" out VARCHAR2) IS varEname VARCHAR2(40):='xxx'; varComm REAL; varSalary CONSTANT NUMBER:=1000; comm_missing EXCEPTION; BEGIN SELECT ENAME, COMM INTO varEname, varComm FROM EMP WHERE EMPNO = param1 ;---7369; IF varComm IS NULL THEN RAISE comm_missing; else dbms_output.put_line('Commision is ' || varcomm ); END IF; param2:=varEname; dbms_output.put_line(param2); EXCEPTION WHEN comm_missing THEN dbms_output.put_line('Commision is NULL'); WHEN no_data_found THEN dbms_output.put_line('Employee Does not Exist'); END "PROCEDURE2"; I need to retrieve the value of param2 inside my Asp.net code. Please help me with Ideas. Salami

      V Offline
      V Offline
      VenkataRamesh
      wrote on last edited by
      #2

      check out this link ..hope it will help u... http://aspnet.4guysfromrolla.com/articles/062905-1.aspx regards Ramesh

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups