Page 1 of 1

Access to AS400 with ODBC: Error SQL 7008

Posted: Tue 13 Apr 2010 07:36
by Giovanna
I try to access at AS400 table with ODBC driver and when i try to edit a table with component TUniTable i have an error:
[IBM][ISeries Access ODBC Driver][DB2 ODB] SQL 7008 - Table not valid for operation
This table is not under journal.
Best Regard.
Giovanna Cellitti.

Posted: Tue 13 Apr 2010 08:52
by bork
Hello

This error is unique to DB2 on the AS/400. The DB2 error SQL7008 is returned when an update is attempted to a table on the AS/400 that is not journalled with an Isolation Level that requires journalling. There are two way to resolve this error.

1. Enable journalling for the table you are attempting to update.
2. Set your Isolation level to NONE (5.0 and Higher) or NO_COMMIT (all previous versions).

Set isolation level

Posted: Tue 13 Apr 2010 09:11
by Giovanna
I try to set IsolationLevel= 'ilReadUnCommitted' on the UniTransaction component and i have same problem. Why?
Thank you.
Giovanna Cellitti

Posted: Wed 14 Apr 2010 09:51
by bork
To resolve your issue you should change the settings of your ODBC driver (not TUniConnection).

A step by step instruction for changing settings of your ODBC driver you can find here:
http://www.microsoft.com/communities/ne ... &sloc=&p=1

But if you want to turn on journaling for the table you can find more detailed information about it here:
http://www.websina.com/bugzero/faq/exception-as400.html

Posted: Tue 20 Apr 2010 08:01
by Giovanna
I had already set the option to 'Commit' to 'NONE' but with a version of the ODBC driver 09.00.08.00, as suggested i updated the driver.
After i tried to do step by step as suggested but I have the same problem. I resolve only if I put on Journaling, what should I do?
Thank you
Giovanna Cellitti

Posted: Wed 21 Apr 2010 08:27
by bork
Our UniDAC components are using functionality and behaviour of the ODBC drivers installed on your computer. Unfortunately we can not change the ODBC drivers behaviour. If you are not satisfied with the driver work or you can not set it up properly, you should ask this ODBC driver's developer.

Posted: Wed 21 Apr 2010 14:55
by Giovanna
I tried to connect with HIT driver ODBC and the result is not changed. If the problem is the driver ODBC (client access/HIT) why only with yours TUniTable component i have problem? I have no problem with TTable component...
Thank you
Giovanna Cellitti

Re: Access to AS400 with ODBC: Error SQL 7008

Posted: Wed 12 Mar 2014 10:56
by Giovanna
I solved it by replacing TUniTable with TUniQuery. :D

Best regards

Giovanna Cellitti

Re: Access to AS400 with ODBC: Error SQL 7008

Posted: Wed 12 Mar 2014 15:39
by Dimon
It is good to see that the problem has been solved. Feel free to contact us if you have any further problems.

Re: Access to AS400 with ODBC: Error SQL 7008

Posted: Tue 03 May 2016 06:20
by alfredalfred
why only with yours TUniTable component i have problem? I have no problem with TTable component...
Thank you


waleeed

Re: Access to AS400 with ODBC: Error SQL 7008

Posted: Thu 19 May 2016 13:31
by MaximG
Please clarify whether the issue is reproduced if you replace the TUniTable component with TUniQuery.

Re: Access to AS400 with ODBC: Error SQL 7008

Posted: Sun 27 Mar 2022 18:52
by C32
Hi,

Could someone please help to know how to create and resolve this error mentioned in subject line of this thread?

For the file which is not journaled and even journaled, I tried all the below Commit mode options in Advance server options still could not generate this error :-

Commit mode:

Commit immediate(*None)
Read uncommited (*CHG)
Read commited(*CS)
Repeatable read (*ALL)
Serializable (*RR)

***************************
also tried by changing various Connection types available under IBM i Access Windows ODBC Driver Connect:

1) Use ODBC access mode
2) Use ODBC access mode, Call allowed
3) Limit to Read/Call(Select and Call statements allowed)
4) Limit to Read-Only (Select statements only)

But could not generate that error(SQL7008).

So someone could please advise how to create this error and then resolve this error so that it will help to understand this error in a better way?



Thanks

Re: Access to AS400 with ODBC: Error SQL 7008

Posted: Mon 28 Mar 2022 04:37
by C32
Hi,

Could someone please advise ?


Thanks.