oracle mx stored procedure

Ask a Question related to Coldfusion Database Access, Design and Development.

  1. #1

    Default oracle mx stored procedure

    "Error Executing Database Query.[Macromedia][Oracle JDBC Driver]
    Incorrect parameter bindings for stored procedure call.
    Check your bindings against the stored procedure's parameters

    <cfstoredproc procedure="test_prc" datasource="#cmacfuser#" returncode="yes">
    <cfprocparam type="In" cfsqltype="CF_SQL_VARCHAR" value="#user.empNo#"
    null="yes"/>
    </cfstoredproc>

    CREATE OR REPLACE PROCEDURE test_prc(pEmpNo IN VARCHAR2)

    If i set returncode to "no" the procedure executes, but it does not receive
    the value sent. I have an insert query in the proc that inserts the value and
    sysdate into a test table. The date is inserted, but the variable is null.

    kyle969 Guest

  2. Similar Questions and Discussions

    1. oracle stored procedure calling
      I have two procedures test1 and test2. Resultset is returned by test2. My coldfusion code calls test1. PROCEDURE test1 (in_eid IN NUMBER,...
    2. stored procedure from oracle to pgsql
      Dear, I'm new in pgsql, come from oracle and sql server. any one can help by transferring a pl/sql procedure that imports data from a flat file,...
    3. oracle, asp, stored procedure
      I am trying to run a stored procedure from an asp page on an oracle 9i db. The stored procedure will take one parameter and should return two...
    4. asp to call Oracle stored procedure
      Here is the ASP code that has problem: ADODB.Parameters error Parameter object is improperly defined... Inconsistent or imcomplete information...
    5. Re-create stored procedure in Oracle 8.0.5
      "Richard Foote" <richard.foote@bigpond.com> wrote in message news:<yVuT9.20373$jM5.56361@newsfeeds.bigpond.com>... Hm, it sound like a good...
  3. #2

    Default Re: oracle mx stored procedure

    Try this: <cfstoredproc procedure="test_prc" datasource="#cmacfuser#" returncode="yes">
    <cfprocparam type="Inout" cfsqltype="CF_SQL_VARCHAR" variable = pEmpNo" value="#user.empNo#" null="yes"/>

    CF_Oracle Guest

  4. #3

    Default Re: oracle mx stored procedure

    Still doesnt work. I removed the returncode param and it sucessfully executes, but the value is not passed to the procedure
    kyle969 Guest

  5. #4

    Default Re: oracle mx stored procedure

    Value must be in single quote since this is VARCHAR datatype.
    <cfprocparam type="Inout" cfsqltype="CF_SQL_VARCHAR" variable = "pEmpNo" value= '#user.empNo#' null="yes"/>

    CF_Oracle Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139