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

Re: AS400 Rollback does not work ! by Miha

Miha
Fri Feb 06 03:46:48 CST 2004

Does as400 driver support transactions?

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

"Mohan" <mohan1_malini5@hotmail.com> wrote in message
news:961C8C94-8B12-4089-A01F-C6C2705CA9AB@microsoft.com...
> 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?
>
> Please help as I had spent lot of time on this



Re: AS400 Rollback does not work ! by Jay

Jay
Fri Feb 06 07:39:33 CST 2004

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/nas4apar.nsf/c79815e083182fec862564c00079d117/7c67fddab257288d86256be4003c8957?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" <mohan1_malini5@hotmail.com> wrote in message
news:961C8C94-8B12-4089-A01F-C6C2705CA9AB@microsoft.com...
> 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?
>
> Please help as I had spent lot of time on this



Re: AS400 Rollback does not work ! by Tim

Tim
Fri Feb 06 19:42:58 CST 2004

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" <mohan1_malini5@hotmail.com> wrote in message
news:961C8C94-8B12-4089-A01F-C6C2705CA9AB@microsoft.com...
> 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?
>
> Please help as I had spent lot of time on this