Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 XCAT_ABORT

Author  Topic 

nishithrn
Yak Posting Veteran

58 Posts

Posted - 2004-07-28 : 06:34:00
Hello All,

I have two boxes of sql server, server A and server B. I am running and insert statement from server A on server B. (server B is configured as linked sevrr on server A).

The insert statement runs implicitly. But when I run the same insert statement explicitly:

begin tran
select @@trancount
insert into [SYNDEV-MUM3].Umesh.dbo.test1
values (5,'Shalit')
--rollback
--commit

I get the following error:

Server: Msg 7395, Level 16, State 2, Line 1
Unable to start a nested transaction for OLE DB provider 'SQLOLEDB'. A nested transaction was required because the XACT_ABORT option was set to OFF.
[OLE/DB provider returned message: Cannot start more transactions on this session.]
OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ITransactionLocal::StartTransaction returned 0x8004d013: ISOLEVEL=4096].

As stated in the above error, I use the SET XCAT_ABORT ON before begin tran:

SET XCAT_ABORT ON
begin tran
select @@trancount
insert into [SYNDEV-MUM3].Umesh.dbo.test1
values (5,'Shalit')
--rollback
--commit

Here, the query goes in a loop, with no reply.Can somebody please help in this regard..???

Thanks in advance....
Nishith

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-07-28 : 08:36:15
Have you tried BEGIN DISTRIBUTED TRANSACTION?

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-07-28 : 08:36:15
Have you tried BEGIN DISTRIBUTED TRANSACTION?

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

nishithrn
Yak Posting Veteran

58 Posts

Posted - 2004-07-29 : 01:36:21
Yes, I have used BEGIN DISTRIBUTED TRANSACTION, but to no success...
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-07-29 : 08:17:27
Are you running this in Query Analyzer?

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

nishithrn
Yak Posting Veteran

58 Posts

Posted - 2004-07-29 : 08:47:43
Yes ...
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2004-07-29 : 08:55:57
Put a GO after your SET XACT_ABORT ON statement. What error did you get when you used the BEGIN DISTRIBUTED TRANSACTION? You do have DTC running on both servers, right? Is this Windows 2000 or 2003?

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page

nishithrn
Yak Posting Veteran

58 Posts

Posted - 2004-07-30 : 00:38:29
Tried as u mentioned, but with no success. Also, both the boxes are in Windows 2000 with SQL 2000 as the database. Hope this helps...

Tx ...
Go to Top of Page
   

- Advertisement -