ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Getting Error while inserting into database table(Sql Server

Post new topic  Reply to topic
 Getting Error while inserting into database table(Sql Server « View previous topic :: View next topic » 
Author Message
nwaradkar
PostPosted: Thu Nov 17, 2011 1:47 am    Post subject: Getting Error while inserting into database table(Sql Server Reply with quote

Novice

Joined: 25 Jul 2011
Posts: 18

While inserting into database table through message broker application I am getting Error :

Text:CHARACTER:[Microsoft][SQL Server Native Client 10.0][SQL Server]Transaction count after EXECUTE indicates that a COMMIT or ROLLBACK TRANSACTION statement is missing. Previous count = 1, current count = 0.

And when I write the same insert query in SQL Browser it is inserting the data into the table successfully.Can anybody tell what is the reason for this problem..
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Thu Nov 17, 2011 6:52 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

You may like to talk to your DBA to help you with this. The root cause is you started a Transaction but did not finish it. Then tried to start another transaction. You may like to look at your nodes in your flow. You should set Transactionality to NO, not Automatic, unless there is a specific reason to use Transactionality. 99% of the flows you may write will not use Transactionality.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
nwaradkar
PostPosted: Thu Nov 17, 2011 8:39 pm    Post subject: Getting Error while inserting into database table(Sql Server Reply with quote

Novice

Joined: 25 Jul 2011
Posts: 18

I have checked with my flows the Transactionality is set to No.Still I am getting the same error..

Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Nov 18, 2011 7:13 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Then work with your DBA to do a DB trace of the transactions on that connection. Alternately, you can turn on tracing at the *DBC driver level.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Fri Nov 18, 2011 7:24 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Also, since the error is complaining about an EXECUTE, this may be a mistake that is inside a stored procedure that you are calling, rather than in your Broker code specifically.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Getting Error while inserting into database table(Sql Server
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.