cfprocresult doesn't work

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

  1. #1

    Default cfprocresult doesn't work

    Firstly, let me say I am fully aware of the issue regarding using cfprocresult
    in MX (in my case 6.1). It seems that has tripped up a lot of people. I am
    using Oracle 9i and MX 6.1, and when I run the attatched code I get the error:

    [Macromedia][Oracle JDBC Driver]Unsupported data conversion.

    And the <cfprocresult name="roles" resultset="1"> line of code is highlighted.

    The procedure works as we have run it with just parameters, but as soon as we
    try and return the result set, after making the additions to the procedure, we
    get the above error. Any ideas?

    Thanks in advance for your help,
    Stephen

    <cfstoredproc
    procedure="bsad_owner.PKG_BSAD_APPS.prc_logon"
    datasource="#application.datasourceName#"
    returncode="no">
    <cfprocparam type="out"
    dbvarname="oNbr_RetCode"
    variable="returnCode"
    cfsqltype="cf_sql_varchar"
    null="no">
    <cfprocparam type="out"
    dbvarname="oVar_RetMsg"
    variable="returnMessage"
    cfsqltype="cf_sql_varchar"
    null="no">
    <cfprocparam type="in"
    dbvarname="iVar_UID"
    value="lsso_uid"
    cfsqltype="cf_sql_varchar"
    null="no">
    <cfprocparam type="in"
    dbvarname="ivar_PWD"
    value="lsso_password"
    cfsqltype="cf_sql_varchar"
    null="no">
    <cfprocparam type="in"
    dbvarname="iVar_AppName"
    value="#application.applicationName#"
    cfsqltype="cf_sql_varchar"
    null="no">

    <cfprocresult name="roles" resultset="1">
    </cfstoredproc>

    zax_srb Guest

  2. Similar Questions and Discussions

    1. Possible to use cfprocresult from a previous cfstoredproc in a cfquery?
      I'm new to ColdFusion and I want to know if it is possible to use the cfprocresult value from a previous cfstoredproc in a cfquery or cfselect or...
    2. Links don't work in Shockwave movie but work in p
      Hi, everyone: I encountered a strange problem. I downloaded a sample movie from Macromedia site and noticed that the same problem occurs what I had...
    3. WHY Doesn't this Work???
      I put a DataHolder on the stage, it automatically has a property called data which is of type "Object". I can use AS to build the properties of...
    4. Will .DIR and .DXR work same?
      I have created a presentaion which consists of 10 movies with extension .dir And I made my all 10 movies cross-linked with each-other, as a normal...
    5. Not sure if this will work..
      hi, i have been askedto design a site for a shiping company and i want to do it in flash. I have an idea and would like some help in how to...
  3. #2

    Default Re: cfprocresult doesn't work

    Since you did not include your stored procedure, I am assuming that you are
    using a reference cursor to capture your result set. What drivers are you
    using, as you cannot use Oracle's ThinClient JDBC drivers when attempting to
    return result sets via reference cursors.

    [url]http://livedocs.macromedia.com/coldfusion/6.1/htmldocs/tags-b17.htm#wp1102246[/url]

    To use reference cursors in packages or stored procedures, use the
    cfprocresult tag. This causes the ColdFusion JDBC database driver to put Oracle
    reference cursors into a result set. (You cannot use this method with Oracle's
    ThinClient JDBC drivers.)

    Phil

    paross1 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