472,982 Members | 2,659 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

ADO.NET - strange behavior

ivb
Hi all,

I am using DB2 8.1.11.1 on NT with ASP.NET 1.1

When application make connection to database (via ADO.NET), it set
"Connection timeout" parameter to 30 seconds.
After, when my webpage requests database, and query execution time
exceeds 30 seconds, the following error reported:

===
[57014] [IBM][DB2/NT] SQL0952N Processing was cancelled due to an
interrupt. SQLSTATE=57014
===

Ok, exception catched and current transaction rolled back.
From this point, the strange behavior begins:


Then application executes any update via this connection again and then
Commit, error occurs:

===
IBM.Data.DB2.DB2Exception: ERROR [2D522] [IBM][DB2/NT] SQL0774N The
statement cannot be executed within an ATOMIC compound SQL statement.
SQLSTATE=2D522
at IBM.Data.DB2.DB2Connection.b(IntPtr A_0, m A_1, x A_2)
at IBM.Data.DB2.DB2Transaction.Commit()
===

transaction also cannot be rolled back, similar error:

===
IBM.Data.DB2.DB2Exception: ERROR [2D522] [IBM][DB2/NT] SQL0774N The
statement cannot be executed within an ATOMIC compound SQL statement.
SQLSTATE=2D522
at IBM.Data.DB2.DB2Connection.b(IntPtr A_0, m A_1, x A_2)
at IBM.Data.DB2.DB2Transaction.Rollback()
===

but executed update locks table rows, and I need restart IIS
application pool to purge connections.

The only workaround I found is make new connection, perform update and
close both connections. Connections closed whithout errors.
But ADO.NET maintains connection pooling, and later, at another pages,
when I connecting database again, and new connection is a old "bad"
connection, it works for select data, but gave error at closing:

===
IBM.Data.DB2.DB2Exception: ERROR [HY010] [IBM] CLI0125E Function
sequence error SQLSTATE=HY010
at IBM.Data.DB2.d.a(Boolean A_0)
at IBM.Data.DB2.DB2ConnPool.a(d A_0, w A_1)
at IBM.Data.DB2.DB2ConnPool.a(Object A_0, Boolean A_1)
at IBM.Data.DB2.q.a(Boolean A_0)
at IBM.Data.DB2.DB2Connection.k()
at IBM.Data.DB2.DB2Connection.Close()
===

then connection became "good" (or killed by connection pool) but
strange behavior ends.

Any ideas?

Apr 5 '06 #1
0 3514

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

Similar topics

2
by: Marcus | last post by:
Hello, I recently converted all my existing MyISAM tables to InnoDB tables through phpmyadmin. I noticed some strange behavior whenever I would refresh the screen, as phpmyadmin would report...
36
by: Dmitriy Iassenev | last post by:
hi, I found an interesting thing in operator behaviour in C++ : int i=1; printf("%d",i++ + i++); I think the value of the expression "i++ + i++" _must_ be 3, but all the compilers I tested...
0
by: thulsey | last post by:
Hi all, I've got some strange behavior happening in Firefox and Safari (Khtml and Gecko) that displays *almost* fine in IE6.0 (still trying to get pixels to line up, anal anal anal...) To...
1
by: Alexander Inochkin | last post by:
Hi! I found same strange behavior of ASP.NET. It is possible this is the bug. Follow the steps:
6
by: Joseph Geretz | last post by:
Writing an Outlook AddIn with C#. For the user interface within Outlook I'm adding matching pairs of Toolbar buttons and Menu items. All of the buttons and menu items are wired up to send events to...
3
by: sara | last post by:
Very strange behavior, but I suspect some is A2K and some might be for me to correct. Just trying to see if anyone can help and advise. We have a database that's been running for a few years...
1
by: Nicholas Palmer | last post by:
Hi all, Got a question about the AspCompat=true page property. First a little background. We have an ASP.NET app that uses two COM components. The first is the Microsoft OWC 11 components and...
19
by: david | last post by:
I took old code and decided to modify it a bit, and I just noticed that it does not compile at all and before server one of severs (main) crashed in the system it was working fine (I am really sure...
20
by: Pilcrow | last post by:
This behavior seems very strange to me, but I imagine that someone will be able to 'explain' it in terms of the famous C standard. -------------------- code -----------------------------------...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...

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.