473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

LOB Access Error

My client's application is generating an exception of CLI0112 and
SQLSTATE 22005 when accessing a BLOB column. The condition resolves
itself when I recycle DB2, access if fine for a while, and then the
exception happens again.

The developers seem to believe it is occurring when two clients are
requesting the same BLOB record at the same time. I do not believe
this to be true and wanted some back up. Their opinion is that DB2 can
only return a BLOB record one at a time, in other words two different
clients can't retreive the same record containing a blob column.

Does any one have any insight on this???

Thanks in advance!!!

Martin

Nov 12 '05 #1
4 2353
Ian
mghale wrote:
My client's application is generating an exception of CLI0112 and
SQLSTATE 22005 when accessing a BLOB column. The condition resolves
itself when I recycle DB2, access if fine for a while, and then the
exception happens again.

The developers seem to believe it is occurring when two clients are
requesting the same BLOB record at the same time. I do not believe
this to be true and wanted some back up. Their opinion is that DB2 can
only return a BLOB record one at a time, in other words two different
clients can't retreive the same record containing a blob column.


Did you or your developers even look at the error message:
CLI0112E Error in assignment.

Explanation:

The data sent for a parameter or column was incompatible with the
data type of the associated table column.

User Response:

Respecify the output binding through SQLBindCol or SQLGetData or
the input binding through SQLSetParam or SQLBindParameter.
Looks like a code problem to me.
Nov 12 '05 #2
Didn't think of that... Of course we looked at it. The problem is this
is not happening in their dev environment which is supposed to have the
same code base. I was looking for a little better response from some
one who might have actually encountered this to backup my position that
it is not a database issue.

Thanks for the reply anyway...

Ian wrote:
mghale wrote:
My client's application is generating an exception of CLI0112 and
SQLSTATE 22005 when accessing a BLOB column. The condition resolves
itself when I recycle DB2, access if fine for a while, and then the
exception happens again.

The developers seem to believe it is occurring when two clients are
requesting the same BLOB record at the same time. I do not believe
this to be true and wanted some back up. Their opinion is that DB2 can
only return a BLOB record one at a time, in other words two different
clients can't retreive the same record containing a blob column.


Did you or your developers even look at the error message:
CLI0112E Error in assignment.

Explanation:

The data sent for a parameter or column was incompatible with the
data type of the associated table column.

User Response:

Respecify the output binding through SQLBindCol or SQLGetData or
the input binding through SQLSetParam or SQLBindParameter.
Looks like a code problem to me.


Nov 12 '05 #3
mghale wrote:
My client's application is generating an exception of CLI0112 and
SQLSTATE 22005 when accessing a BLOB column. The condition resolves
itself when I recycle DB2, access if fine for a while, and then the
exception happens again.

The developers seem to believe it is occurring when two clients are
requesting the same BLOB record at the same time. I do not believe
this to be true and wanted some back up. Their opinion is that DB2 can
only return a BLOB record one at a time, in other words two different
clients can't retreive the same record containing a blob column.


That's complete nonsense. The only differences between LOBs and, say,
VARCHARs is that LOBs can be stored in a separate tablespace, the LONG
tablespace, and that you can use locators to insert/fetch retrieve the LOBs
in chunks (in addition to the retrieval of LOBs as a whole).

I'd also say that there is a coding problem in your application. Maybe you
run into a special code path in the production environment. I don't assume
that your app has some sort of trace facility?

You could use DB2's CLI trace when the error occurs and then search for the
failing statement and see which parameters were bound and how (with which
data types) this was done.

--
Knut Stolze
DB2 Information Integration Development
IBM Germany
Nov 12 '05 #4
Thanks for the replies. I appreciate the responses and like they
suggest, the app team finally got their end fixed. I knew it had to be
their app but sometimes another opinion is needed to get them to
actually dig in and try to find their problem.

thanks again!

Nov 12 '05 #5

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

Similar topics

3
by: Nicola | last post by:
Hi Everyone, I am new to programming and would like to know how to open an access Report from within vb 6. I am trying to write a program to organise cross stitch threads. I have found out how...
4
by: Fabian von Romberg | last post by:
Hi, I have installed Sql Reporting Services on 2 machines, one is WIN 2000 PRO and the other one is WIN 2000 ADV. SERVER. When I try to access a report using the webbrowser, I get the following...
1
by: annie | last post by:
Hi all, I have recently ported my Access 2000 app to SQL Server, keeping the Access client as the front end using linked tables. I am also using triggers on my SQL tables to trap orphan...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
9
by: Fish Womper | last post by:
I am at best a part time developer of Access databases. I use Access 2.0, as this is all my employer has on its computers. Even so, to use this ancient version requires a fairly convoluted...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
8
by: Greg Strong | last post by:
Hello All, The short questions are 1 Do you know how to make DSN connection close in Access to Oracle 10g Express Edition? &/or 2 Do you know how to make a DSN-less pass-through query...
0
by: Sebastian | last post by:
Hello I develop my applications in Access 2002. My development system is running Windows XP SP2 and I have Microsoft Office XP Developer. Microsoft Office XP is at SP3. I used Inno Setup (great...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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,...
0
jinu1996
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...

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.