Access to AS400 with ODBC: Error SQL 7008
Access to AS400 with ODBC: Error SQL 7008
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.
[IBM][ISeries Access ODBC Driver][DB2 ODB] SQL 7008 - Table not valid for operation
This table is not under journal.
Best Regard.
Giovanna Cellitti.
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).
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
I try to set IsolationLevel= 'ilReadUnCommitted' on the UniTransaction component and i have same problem. Why?
Thank you.
Giovanna Cellitti
Thank you.
Giovanna Cellitti
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
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
Re: Access to AS400 with ODBC: Error SQL 7008
I solved it by replacing TUniTable with TUniQuery.
Best regards
Giovanna Cellitti
Best regards
Giovanna Cellitti
Re: Access to AS400 with ODBC: Error SQL 7008
It is good to see that the problem has been solved. Feel free to contact us if you have any further problems.
-
- Posts: 1
- Joined: Tue 03 May 2016 06:18
Re: Access to AS400 with ODBC: Error SQL 7008
why only with yours TUniTable component i have problem? I have no problem with TTable component...
Thank you
waleeed
Thank you
waleeed
Re: Access to AS400 with ODBC: Error SQL 7008
Please clarify whether the issue is reproduced if you replace the TUniTable component with TUniQuery.
Re: Access to AS400 with ODBC: Error SQL 7008
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
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
Hi,
Could someone please advise ?
Thanks.
Could someone please advise ?
Thanks.