473,508 Members | 2,038 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DB2 UDB V7: Ignoring a set of parameters problem

Hi,

In the CLI guide and reference i've read about the possibility of getting status
information when using arrays to input parameter values. This i've achieved as
described with the SQL_ATTR_PARAM_STATUS_PTR attribute of the SQLSetStmtAttr()
function.

I'm trying to do a bulk INSERT and if there are already records in the target
table, i want to update those records that were already present. Depending on
the status information just received i filled an SQLUSMALLINT* array with
SQL_PARAM_PROCEED or SQL_PARAM_IGNORE for telling DB2 (with the
SQL_ATTR_PARAM_OPERATION_PTR attribute of SQLSetStmtAttr()) which records to
ignore when executing the SQL statement for the bulk UPDATE. This is were the
problem arises, i can't seem to make this bulk UPDATE work correctly. I'm
getting error message: [IBM][CLI Driver][DB2/LINUX] SQL0100W No row was found
for FETCH, UPDATE or DELETE; or the result of a query is an empty table.
SQLSTATE=00000.

But the destination table isn't empty, i've checked this a thousand times. I
also put on the tracing and you can actually see what DB2 wants to execute,
which are the exact records that already are in the destination table. In the
attachment i've described the table's structure and content, furthermore i've
added the error from the DB2DIAG.LOG file and the tracings that DB2 has
generated while executing my program.

Does anybody has experience with this kind of bulk INSERT/UPDATE actions???
Can someone give me an example of how i should do this or tell me what i'm
overlooking here.

Thanks in advance!!!

Davy Faassen
Nov 12 '05 #1
0 2368

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1342
by: Brano Zarnovican | last post by:
Hi ! If I define 'f' like this def f(a): print a then, the call with keywords f(1, optional=2)
33
2553
by: C# Learner | last post by:
Note ---- Please use a fixed-width font to view this, such as Courier New. Problem
4
4729
by: Srikanth | last post by:
Hi Can any one say how to check a hashtable by ignoring the case of key supplied. I want the following requirement It should not allow the user to do the following Hashtable table = new...
17
2136
by: Ben R. | last post by:
I'm reading about attribute classes and specifically, named versus positional parameters. Was this implimented instead of multiple constructors for flexibility or is there another reason I'm...
4
2977
by: Mike Dinnis | last post by:
Hi, I've been working through a number of turorials to try to learn more about retrieving data from a SQL database. I think i've mastered techniques where i create a sql string in the page and...
0
5656
by: info | last post by:
i researched for a while on the net and found that more people have this problem, but could not get an answer. i am very new to MySql. linux - feudora i log into mysql using "root" when...
1
2778
by: Don | last post by:
Hi all, So i may have painted myself into a corner, am I screwed? I'm developing a message board for a site I work on, fairly simple hierarchy. Topics -> Threads -> Posts. As such, I've...
2
2609
by: Hexman | last post by:
Hello All, Well I'm stumped once more. Need some help. Writing a simple select and update program using VB.Net 2005 and an Access DB. I'm using parameters in my update statement and when trying...
0
2071
by: Xah Lee | last post by:
In this article, i explain how the use of bit masks is a hack in many imperative languages. Often, a function will need to take many True/False parameters. For example, suppose i have a function...
0
7125
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7328
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
7049
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7499
tracyyun
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...
0
5631
agi2029
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,...
0
4709
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...
0
3199
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...
0
1561
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 ...
0
422
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.