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
 Transact-SQL (2000)
 problem with MSDTC

Author  Topic 

SQLServerDBA_Dan
Aged Yak Warrior

752 Posts

Posted - 2004-06-07 : 12:19:20
I'm attempting to run a stored proc into a table. The stored proc is on a sql server (2k) on a different domain. The table is on the sql server (also 2k) that I have a connection to. I have setup a linked server and the stored proc runs fine. When I attempt to insert the proc results into the table I get this error:

Server: Msg 7391, Level 16, State 1, Line 6
The operation could not be performed because the OLE DB provider 'SQLOLEDB' was unable to begin a distributed transaction.
[OLE/DB provider returned message: New transaction cannot enlist in the specified transaction coordinator. ]
OLE DB error trace [OLE/DB Provider 'SQLOLEDB' ITransactionJoin::JoinTransaction returned 0x8004d00a].



This runs with no problem:

Declare @SDate datetime, @Edate datetime
Select @SDate = dateadd(d, -1, getdate()), @EDate = getdate()

exec [sql2].somedb2.dbo.usp_transactions @start_datetime = @SDate, @end_datetime = @EDate



This fails with the above error:

Declare @SDate datetime, @Edate datetime
Select @SDate = dateadd(d, -1, getdate()), @EDate = getdate()

insert into sql1.somedb.dbo.trans
exec [sql2].somedb2.dbo.usp_transactions @start_datetime = @SDate, @end_datetime = @EDate





Daniel
SQL Server DBA

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-06-07 : 13:14:25
So is the MSDTC service started on both servers?

Tara
Go to Top of Page

SQLServerDBA_Dan
Aged Yak Warrior

752 Posts

Posted - 2004-06-07 : 13:16:21
quote:
Originally posted by tduggan

So is the MSDTC service started on both servers?

Tara



Yes.

Daniel
SQL Server DBA
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-06-07 : 13:22:56
Is this for Windows 2003? If so:

http://support.microsoft.com/default.aspx?scid=kb;en-us;329332

Tara
Go to Top of Page

SQLServerDBA_Dan
Aged Yak Warrior

752 Posts

Posted - 2004-06-07 : 13:33:12
quote:
Originally posted by tduggan

Is this for Windows 2003? If so:

http://support.microsoft.com/default.aspx?scid=kb;en-us;329332

Tara



Yeah one box is Win2003 the other is WinNT4. Both have SQL2000 Standard. I'll take a look at the link, thanks.

Daniel
SQL Server DBA
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-06-07 : 13:42:08
The link refers to network access being disabled for MSDTC by default on Win2k3. It has the steps to enable it.

Tara
Go to Top of Page

SQLServerDBA_Dan
Aged Yak Warrior

752 Posts

Posted - 2004-06-07 : 14:50:40
quote:
Originally posted by tduggan

The link refers to network access being disabled for MSDTC by default on Win2k3. It has the steps to enable it.

Tara



*Shoots self in head*

Sorry. SQL1 is where the link server is setup and it is calling the proc on SQL2. SQL1 is SQL2k with WinNT4.
SQL2 is SQL2k with Win2k Advanced Server. No SQL2k3 boxes here.

Daniel
SQL Server DBA
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2004-06-07 : 14:53:12
Here's a different domain Q article:

http://support.microsoft.com/default.aspx?scid=kb;en-us;827805

Tara
Go to Top of Page

SQLServerDBA_Dan
Aged Yak Warrior

752 Posts

Posted - 2004-06-07 : 14:59:02
quote:
Originally posted by tduggan

Here's a different domain Q article:

http://support.microsoft.com/default.aspx?scid=kb;en-us;827805

Tara



What kind of security issues could turning off Rpc security cause?

Daniel
SQL Server DBA
Go to Top of Page

SQLServerDBA_Dan
Aged Yak Warrior

752 Posts

Posted - 2004-06-08 : 10:21:05
quote:
Originally posted by SQLServerDBA_Dan

quote:
Originally posted by tduggan

Here's a different domain Q article:

http://support.microsoft.com/default.aspx?scid=kb;en-us;827805

Tara



What kind of security issues could turning off Rpc security cause?

Daniel
SQL Server DBA



Anyone have comments on this? Perhaps I should post it in the admin forum too?

Thanks.

Daniel
SQL Server DBA
Go to Top of Page
   

- Advertisement -