to get array from stored procedure

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

  1. #1

    Default to get array from stored procedure

    Hi All,
    I am trying to find a way to access the Array of varchars being retuned by a
    Oracle Stored procedure in ColdFusion MX 7.

    CFPORCPARAM no longer allows Maxrows as an attribute and I am hence not able
    to get the value of this parameter.

    Please note that Oracle Package has the following Type - which is an Array of
    varchars

    TYPE char_array IS TABLE OF VARCHAR2(20) INDEX BY BINARY_INTEGER;

    PROCEDURE PROC_ISTABLEOF_ARRAY (outField OUT char_array) ;

    My CF code is :- (I get error with this - which says wrong type of arguments
    passed)

    <CFSTOREDPROC procedure="MetaData.PROC_ISTABLEOF_ARRAY"
    datasource="mydatasource"> <CFPROCPARAM type="Out"
    cfsqltype="CF_SQL_VARCHAR" variable="FieldName" >
    </CFSTOREDPROC> <CFSET qry = QueryNew("")> <CFSET RC=QueryAddColumn(qry,
    "FieldColumn", FieldName)> <CFTABLE QUERY ="qry" COLHEADERS> <CFCOL
    HEADER = "FIELD NAME" TEXT = "#qry.FieldColumn#"> </CFTABLE>

    qgh Guest

  2. Similar Questions and Discussions

    1. Stored Procedure
      EXEC master..xp_cmdshell 'cscript c:\path\file.vbs' EXEC master..xp_cmdshell 'c:\path\file.exe' "Kannan" <gk_i@yahoo.com> wrote in message...
    2. MS SQL stored procedure
      I am new to MS SQL server and stored procedures. I currently have a query that looks like: select from table where fieldname IN...
    3. stored procedure help
      Hi all! I am in need of writing a few stored procedures. The first one is to create a stored procedure to recover a database from backup and the...
    4. stored procedure value
      How can I bind a stored procedure value to a page? I've executed a stored procedure and there should be two column values created...i.e. col1 and...
    5. Stored procedure from stored procedure
      Is it possible to create a stored procedure from a stored procedure? When I attempt this inanity, it doesn't blow up until syntax error at the...
  3. #2

    Default Re: to get array from stored procedure

    Sorry, but there isn't any way that I know of to pass collections (what used to
    be called Pl/SQL tables) from an Oracle package to CF MX 7 using a cfprocresult
    or cfprocparam . There used to be a method with older versions of ColdFusion
    (4.5) , but not any more.

    See [url]http://www.macromedia.com/go/tn_17938[/url]

    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