Hi,
Currently I am embarked on a project that requires me to define and
pass array to stored procedure, and I found out that there is no
direct way to do this. I wonder if a combination of UDF and java code
should be able to accomplish this. Has anyone accomplish this before?
Maybe someone can share the best way to accomplish this. I am using
DB2 8.1. I am sure someone has done it before, I just need a guideline
how to do this best.
Aaron. 4 4379 aa******@yahoo. com.au wrote:
>
Hi,
Currently I am embarked on a project that requires me to define and
pass array to stored procedure, and I found out that there is no
direct way to do this. I wonder if a combination of UDF and java code
should be able to accomplish this. Has anyone accomplish this before?
Maybe someone can share the best way to accomplish this. I am using
DB2 8.1. I am sure someone has done it before, I just need a guideline
how to do this best.
No clue what you really want to do. But you could simply write the data
into a table, call the procedure and the procedure reads from the table.
The table can be a temp table.
--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
On Apr 12, 1:31 am, Knut Stolze <sto...@de.ibm. comwrote:
aaron...@yahoo. com.au wrote:
Hi,
Currently I am embarked on a project that requires me to define and
pass array to stored procedure, and I found out that there is no
direct way to do this. I wonder if a combination of UDF and java code
should be able to accomplish this. Has anyone accomplish this before?
Maybe someone can share the best way to accomplish this. I am using
DB2 8.1. I am sure someone has done it before, I just need a guideline
how to do this best.
No clue what you really want to do. But you could simply write the data
into a table, call the procedure and the procedure reads from the table.
The table can be a temp table.
--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
My intention is simple. The workaround using temp table is not an
option. What I need is to be able to define an array in Java, get the
resultset and store it in array and pass this array on to stored
procedure. Isn't there any JDBC side API catered for this? I have been
doing varray (Oracle) all the while and would like to mimic the same
functionality in DB2. We have Java folks but we are not totally
familiar with DB2. So any guide will be appreciated.
Aaron. aa******@yahoo. com.au wrote:
On Apr 12, 1:31 am, Knut Stolze <sto...@de.ibm. comwrote:
>aaron...@yahoo .com.au wrote:
>>Hi, Currently I am embarked on a project that requires me to define and pass array to stored procedure, and I found out that there is no direct way to do this. I wonder if a combination of UDF and java code should be able to accomplish this. Has anyone accomplish this before? Maybe someone can share the best way to accomplish this. I am using DB2 8.1. I am sure someone has done it before, I just need a guideline how to do this best.
No clue what you really want to do. But you could simply write the data into a table, call the procedure and the procedure reads from the table. The table can be a temp table.
-- Knut Stolze DB2 z/OS Utilities Development IBM Germany
My intention is simple. The workaround using temp table is not an
option. What I need is to be able to define an array in Java, get the
resultset and store it in array and pass this array on to stored
procedure. Isn't there any JDBC side API catered for this? I have been
doing varray (Oracle) all the while and would like to mimic the same
functionality in DB2. We have Java folks but we are not totally
familiar with DB2. So any guide will be appreciated.
Aaron.
Aaron, did you get may email?
Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
On Apr 13, 12:05 am, Serge Rielau <srie...@ca.ibm .comwrote:
aaron...@yahoo. com.au wrote:
On Apr 12, 1:31 am, Knut Stolze <sto...@de.ibm. comwrote:
aaron...@yahoo. com.au wrote:
>Hi, Currently I am embarked on a project that requires me to define and pass array to stored procedure, and I found out that there is no direct way to do this. I wonder if a combination of UDF and java code should be able to accomplish this. Has anyone accomplish this before? Maybe someone can share the best way to accomplish this. I am using DB2 8.1. I am sure someone has done it before, I just need a guideline how to do this best.
No clue what you really want to do. But you could simply write the data
into a table, call the procedure and the procedure reads from the table.
The table can be a temp table.
--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
My intention is simple. The workaround using temp table is not an
option. What I need is to be able to define an array in Java, get the
resultset and store it in array and pass this array on to stored
procedure. Isn't there any JDBC side API catered for this? I have been
doing varray (Oracle) all the while and would like to mimic the same
functionality in DB2. We have Java folks but we are not totally
familiar with DB2. So any guide will be appreciated.
Aaron.
Aaron, did you get may email?
Cheers
Serge
--
Serge Rielau
DB2 Solutions Development
IBM Toronto Lab
Yes I did. Thanks.
Aaron This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Tommie Nygren |
last post by:
For different reasons I am reading an array of bytes from a file in my
..jar-file and from this I want to create a PNG image using
Image.createImage(myArray, 0 , myArray.length).
I had a prototype that did this and it worked fine. It was working on
a file with a series of PNG-images just thrown together, one after
another, the MIDlet read the bytes of each image in turn into an array
of bytes that was then used to create the image.
...
|
by: Ole |
last post by:
Goodday everybody,
i want to create an array that represents data, that has to
be transferred to a pdf doc ( iTextSharp ).
The problem is, that i seem too loose my faith. Namely, ( i have
experiences in
c/c++, perl and i thouht in c#, too ), i do not succeed in creating a
multidimensional array. I have no experience in creating
multidimensional array in c#. The whole process looks so ugly to me,
|
by: Oleg Konovalov |
last post by:
Hi,
I am trying to pass a bunch of checked checkboxes (Javascript array)
from page1 to the Java action class on subsequent web page (page2).
(on page 1 I have a bunch of DB rows with a checkbox,
need to iterate through pages page2 - e.g. allow user to update the fields
there)
On page1 I have a bunch of checkboxes with the same name v1
but different values (= DB rowId).
|
by: RyanTaylor |
last post by:
I have a final coming up later this week in my beginning Java class and my
prof has decided to give us possible Javascript code we may have to write.
Problem is, we didn't really cover JS and what we covered was within the
last week of the class and all self taught.
Our prof gave us an example of a Java method used to remove elements from an
array:
public void searchProcess()
{ int outIt=0;
|
by: phjones |
last post by:
This is not a class project.The program below is to display mortgage interest paid for each payment over the term of the loan and loan balance.It is program using array. However, I am receiving the following error message:
--------------------Configuration: <Default>--------------------
C:\Program Files\Xinox Software\JCreatorV4LE\MyProjects\mortgageloan\src\mortgageloan.java:30: operator > cannot be applied to double,int
...
| |
by: Stephen3776 |
last post by:
I am doing an inventory control progam and trying to output a multiple array, I am getting an illegal conversion error java.lang.double !d. Can somebody tell me what I am doing wrong or if there is another way?
/*
* Main.java
*
* Created on April 29, 2007, 6:57 PM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/
|
by: sammyboy78 |
last post by:
I'm trying to display an array of objects using a GUI. My instructions are that the CD class and it's sublcass don't need to change I just need to modify class CDInventory to include the GUI. I'm not even sure if the way I've written this is going to work but anyway, I keep getting a compilation error that says:
C:\Documents and Settings\Sam\GUICDInventory.java:22: cannot find symbol
symbol : constructor JList(CDInventory)
location: class...
|
by: MimiMi |
last post by:
I'm trying to decrypt a byte array in java that was encrypted in C#. I don't get any error messages, just a result that's completely not what I was hoping for.
I think I am using the same type of algorithm, initialization vector (IV), mode, padding, key etc, but I just don't get the two languages to "understand each other", or, in other words, I must be missing out on something crucial.
I encrypt a byte array in C# and send over the byte...
|
by: MimiMi |
last post by:
I'm trying to decrypt a byte array in java that was encrypted in C#. I don't get any error messages, just a result that's completely not what I was hoping for.
I think I am using the same type of algorithm, initialization vector (IV), mode, padding, key etc, but I just don't get the two languages to "understand each other", or, in other words, I must be missing out on something crucial.
I encrypt a byte array in C# and send over the byte...
|
by: benyboy |
last post by:
hi, after hours of staring at my computer screen, and browsing through various internet forums i am totally stuck!
I have created the following array which reads from an input file the following list of book titles followed by author then book title author etc
Concurrent programming ---- book title
C. R. Snow ---- author
Pascal Precisely ...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |