all groups > sql server programming > may 2006 >
You're in the

sql server programming

group:

Using Transactions with Aliases


Using Transactions with Aliases Darren
5/23/2006 7:52:01 PM
sql server programming:
We currently setup an environment using the Server Alias from the SQL Server
Client Network Utility. We are using these connections (which are different
servers than the one we configured the alias on) as link servers. When I
attempt to run a Store Procedure with BEGIN TRANS trying to get data from one
of these Aliases I get this error message:

Server: Msg 7391, Level 16, State 1, Procedure usp_Blah, Line 60
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].

Can anyone tell me why this is happening? I have read through some
newsgroups and most people say you can't run a transaction on a server alias
if it points to the same the server, but we are pointing to different
physical SQL Servers. Is this an Alias issue? Or do I have something
configured incorrectly?

Re: Using Transactions with Aliases Uri Dimant
5/24/2006 12:00:00 AM
Darren
Try BEGIN DISTRIBUTED TRAN command inside the stored procedure





[quoted text, click to view]

Re: Using Transactions with Aliases Darren
5/24/2006 9:58:01 AM
That didn't work. Same error.

[quoted text, click to view]
AddThis Social Bookmark Button