Results 1 to 4 of 4

Thread: Passing array or object to an ORACLE stored procedure

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    2

    Passing array or object to an ORACLE stored procedure

    I normally code in Java and have found myself tasked to correct a few problems in some legacy code that was written in VB6 using ADODB to connect to an ORACLE Database. I need to be able to pass a collection such as an array or a custom defined DB type from the VB code to an ORACLE 9i database. Is this possible in VB6 using ADODB? If so could someone shed some light on how?

    Thanks in advance.
    Last edited by NeedAleve; Jan 30th, 2008 at 04:20 PM. Reason: updated Title

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Passing array or object to stored procedure

    Welcome to the forums.

    I suspect so.

    Can you give me an example of what you need to pass?

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2008
    Posts
    2

    Re: Passing array or object to stored procedure

    Currently we have a stored procedure that takes a comma separated list of values. The values are based on user selection. When the list, which is held in a String, gets up around 254 characters we get an error from the database stating that the input is to long. We are hoping to get by this limitation by passing in an Array from VB to the Oracle stored procedure.

    Any help would be appreciated.

  4. #4
    MS SQL Powerposter szlamany's Avatar
    Join Date
    Mar 2004
    Location
    Connecticut
    Posts
    18,263

    Re: Passing array or object to stored procedure

    I can't imagine that there is a 255 character max to a parameter - but I could be wrong...

    Have you looked at the definition of the SPROC to see what the size of that parameter is set to be??

    btw - edit your first post - go advanced - and add to the thread title the word ORACLE - there are ORACLE people on board here...

    *** Read the sticky in the DB forum about how to get your question answered quickly!! ***

    Please remember to rate posts! Rate any post you find helpful - even in old threads! Use the link to the left - "Rate this Post".

    Some Informative Links:
    [ SQL Rules to Live By ] [ Reserved SQL keywords ] [ When to use INDEX HINTS! ] [ Passing Multi-item Parameters to STORED PROCEDURES ]
    [ Solution to non-domain Windows Authentication ] [ Crazy things we do to shrink log files ] [ SQL 2005 Features ] [ Loading Pictures from DB ]

    MS MVP 2006, 2007, 2008

Posting Permissions

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



Click Here to Expand Forum to Full Width