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 » sqlserver odbc transaction on MQSI

Post new topic  Reply to topic
 sqlserver odbc transaction on MQSI « View previous topic :: View next topic » 
Author Message
Fede_patane
PostPosted: Tue Feb 12, 2008 11:32 am    Post subject: sqlserver odbc transaction on MQSI Reply with quote

Novice

Joined: 05 Oct 2006
Posts: 15
Location: Buenos Aires, Argentina

Dear gurus,
i am using WMB 6 on AIX 5.3 and i am developing a flow that uses an ODBC source to an SQL Server Database.

I have created the ODBC source in the /var/mqsi/odbc/.odbc.ini in the following way:

[ArClientes]
Driver=/opt/IBM/mqsi/6.0/merant/lib/UKmsss20.so
Description=Base de clientes
Address=mysqlserver
Database=AR_CLIENTES
AnsiNPW=Yes
QuotedId=No

in the flow i am using a compute node on this source and within i excecute several SPs . What I want to do is if any of the SPs fail to rollback all the excecutions.

When i do this even if i explicitly call rollback it does not rollback. I have tried changing the compute node "transaction" from automatic to commit and back and nothing changes. I have also inspected the SPs and none have an explicit commit inside.

I have tried doing this on a db2 database and it worked fine.

Has any of you encountered this problem before.

An example of what i am trying to do would be:

PASSTHRU 'BEGIN TRANSACTION' ;



call SP1 (
...
....
)

if error then
PASSTHRU 'ROLLBACK TRANSACTION' ;
end if;


call SP2 (
...
....
)

if error then
PASSTHRU 'ROLLBACK TRANSACTION' ;
end if;


call SP3 (
...
....
)

if error then
PASSTHRU 'ROLLBACK TRANSACTION' ;
end if;



PASSTHRU 'COMMIT TRANSACTION' ;


Any ideas or sugestions will be welcomed.

Thanx in advance.

Federico
_________________
You ask why are we slaves, but I ask why are you not? What hideous force in the universe could set you free and forever taken away your peace of mind.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
jefflowrey
PostPosted: Tue Feb 12, 2008 12:42 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Each passthru is going to be in a separate transaction.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Fede_patane
PostPosted: Wed Feb 13, 2008 2:49 am    Post subject: Reply with quote

Novice

Joined: 05 Oct 2006
Posts: 15
Location: Buenos Aires, Argentina

then i have a second question. If each passthrough is in a different transaction, how do i commit (or rollback )the current transaction?
_________________
You ask why are we slaves, but I ask why are you not? What hideous force in the universe could set you free and forever taken away your peace of mind.
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » sqlserver odbc transaction on MQSI
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.