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.
| Author |
Topic |
|
tomcom
Starting Member
1 Post |
Posted - 2003-11-02 : 04:22:28
|
| I try to use disrtibuted transaction. First,I use MSDASQL successfull: set XACT_ABORT onset ANSI_NULL_DFLT_ON onset ANSI_WARNINGS on BEGIN DISTRIBUTED TRANSACTIONselect * from OPENDATASOURCE('MSDASQL','DRIVER={SQL Server};SERVER=192.168.2.1;UID=sa;PWD=PASSWORD;').pubs.dbo.jobscommit tranThen I try to use SQLOLEDB, But failure:set XACT_ABORT onset ANSI_NULL_DFLT_ON onset ANSI_WARNINGS on BEGIN DISTRIBUTED TRANSACTIONselect * from OPENDATASOURCE('SQLOLEDB','Data Source=192.168.2.1;User ID=sa;Password=PASSWORD').pubs.dbo.jobscommit tranI get the following error message:The operation could not be performed because the OLE DBprovider 'SQLOLEDB' was unable to begin a distributedtransaction.[OLE/DB provider returned message: New transaction cannotenlist in the specified transaction coordinator. ]OLE DB error trace [OLE/DB Provider 'SQLOLEDB'ITransactionJoin::JoinTransaction returned 0x8004d00a].but I run the code use SQLOLEDB without DISTRIBUTED TRANSACTION success:select * from OPENDATASOURCE('SQLOLEDB','Data Source=192.168.2.1;User ID=sa;Password=PASSWORD').pubs.dbo.jobsWHY? Please help me! |
|
|
|
|
|