AS400 Rollback does not work !

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I had tried OLEDB (IBMDA400) with .net for Transactions. Transactions are not supported at all with OLEDB and AS400. Now I am trying ODBC.NET for transaction. Rollback does not work with ODBC.NE

Can anybody help? If Transactions are not supported also in ODBC.NET , how to lock records and execute statements as a whole work? Any ideas

Please help as I had spent lot of time on this
 
Does as400 driver support transactions?

--
Miha Markic [MVP C#] - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

Mohan said:
I had tried OLEDB (IBMDA400) with .net for Transactions. Transactions are
not supported at all with OLEDB and AS400. Now I am trying ODBC.NET for
transaction. Rollback does not work with ODBC.NET
Can anybody help? If Transactions are not supported also in ODBC.NET , how
to lock records and execute statements as a whole work? Any ideas?
 
Mohan,
As Miha suggested.

Double check that the OLEDB or the ODBC As/400 drivers support transactions.
Last time I worked with them I don't remember that they did.

Its best to be on Client Access V5R2 or later (with current all PTFs) to be
fully supported from .NET. (I understand that you can remain on OS/400 V4R5,
its the client that needs to be current).

http://www-1.ibm.com/servers/eserver/iseries/access/oledb/index.html

http://www-912.ibm.com/n_dir/nas4ap...6be4003c8957?OpenDocument&Highlight=2,ii13341

The above links are from June 3rd, not sure if there are more current
versions with better support...

If you look around the SQL Thing site (http://www.sqlthing.com) and the
above sites you should come across a number of samples and further
information.

Hope this helps
Jay


Mohan said:
I had tried OLEDB (IBMDA400) with .net for Transactions. Transactions are
not supported at all with OLEDB and AS400. Now I am trying ODBC.NET for
transaction. Rollback does not work with ODBC.NET
Can anybody help? If Transactions are not supported also in ODBC.NET , how
to lock records and execute statements as a whole work? Any ideas?
 
In order to use transactions on the AS400, the AS400 files must be set up to
use journaling. Most 400 shops don't do it because of the memory overhead
and disk overhead. It is a hog. However, you can activate it on only the
tables you need to.

Tim

Mohan said:
I had tried OLEDB (IBMDA400) with .net for Transactions. Transactions are
not supported at all with OLEDB and AS400. Now I am trying ODBC.NET for
transaction. Rollback does not work with ODBC.NET
Can anybody help? If Transactions are not supported also in ODBC.NET , how
to lock records and execute statements as a whole work? Any ideas?
 
Back
Top