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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 SQL: Distributed Transaction
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

2 Posts

Posted - 04/18/2007 :  12:17:19  Show Profile  Reply with Quote
Hi folks,

i got sql server 2000 sp4 and im trying with a linked server to insert the same data in a sql table and also in a as400 (db2) table
i think the linked server is fine because i can see the tables and also i can insert data in as400 tables but with a simple insert but i created a trigger to do the replication of data in sql and as400 and when i try to insert and invoke the trigger it gives me this error:

Server: Msg 7391, Level 16, State 1, Procedure INSERT_WMCS01F, Line 18
The operation could not be performed because the OLE DB provider 'MSDASQL' was unable to begin a distributed transaction.
[OLE/DB provider returned message: [IBM][iSeries Access ODBC Driver]Enlist with DTC phase failed. 2]
OLE DB error trace [OLE/DB Provider 'MSDASQL' ITransactionJoin::JoinTransaction returned 0x8004d00a].

I would appreciate if you could help me...

PD: I already have tried many solutions presented in other foruns.. Someone who have already worked with this can say to me if the MSDASQL provider supports distributed transactions?

I also used the db2oleb to the linked server and i can see the tables i want in the enterprise manager so i guess the connection is fine but if i query the linked server with a select * from for example i get this error:

Server: Msg 7399, Level 16, State 1, Line 1
OLE DB provider 'DB2OLEDB' reported an error. The provider did not give any information about the error.
OLE DB error trace [OLE/DB Provider 'DB2OLEDB' IUnknown::QueryInterface returned 0x80004005: The provider did not give any information about the error.].


Edited by - NoFxPT on 04/18/2007 12:21:48

Professor Frink

1421 Posts

Posted - 04/18/2007 :  16:13:16  Show Profile  Visit mfemenel's Homepage  Reply with Quote
try using select into to get the data into a temp table and then use that temp table to do your insert into your main table. I've not solved this issue myself but this has let me work around it and stop pulling my hair out. (just about too late for that anyway but that could be a whole difft forum)

"oh, that monkey is going to pay"
Go to Top of Page

Starting Member

2 Posts

Posted - 04/19/2007 :  07:22:39  Show Profile  Reply with Quote

check this:

Do you have idead where can i download SNA Server 4.0 Service Pack 4? The microsoft link is broken...
Go to Top of Page

Patron Saint of Lost Yaks

30421 Posts

Posted - 04/19/2007 :  07:33:12  Show Profile  Visit SwePeso's Homepage  Reply with Quote
Asked here too

Peter Larsson
Helsingborg, Sweden
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000