dbTalk Databases Forums  

distributed transaction problem ?

comp.databases.ms-sqlserver comp.databases.ms-sqlserver


Discuss distributed transaction problem ? in the comp.databases.ms-sqlserver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Matik
 
Posts: n/a

Default distributed transaction problem ? - 08-21-2007 , 10:42 AM






Hi,

MSSQL 2000 booth servers. Booth running DTC.

Now, the client application, is starting in DB1 a procedure.
The connection open to db, is within the transation opened from
client.

In the SP, I'm starting the transaction as well, with savepoint.

Unfortunately, I have to get data, from other linked server (DB2).

While performing query, the client application is recieving follow
messages:

If the query on DB2 is after a savepoint
------
Cannot go remote while the session is enlisted in a distributed
transaction that has an active savepoint

If the query, is before starting transaction in sp (save point as
well)
-----
The operation could not be performed because the OLE DB provider
'SQLOLEDB' was unable to begin a distributed transaction

Now ... I was trying to set xact_abort to on, before, and within the
transaction in SP.
But doesynt matter, it will not do.

While calling an SP from QA, it goes threw, with query on DB2 before
transaction inside SP.
For me, it is an information, that the problem which I get, is because
the client, while connecting to DB, is using it's connection within
transaction.

My question is: how can I, run this query on DB2, without affecting
changes on the client side ?

Below, small layout of this transactions stack

BEGIN TRANSACTION_1 (client side)
BEGIN TRANSACTION_2 (inside SP)
SAVE TRANSACTION_2

COMMIT OR ROLLBACK _TRANSACTION_2
COMMIT OR ROLLBACK _TRANSACTION_1 (client side)

where and with what option, put this query ?


Best regards - Matik


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.