Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/sql-server-2005/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/visual-studio-2010/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server ting,允许DTC服务,它成功了。很高兴看到您没有跳过关键的“诅咒和诅咒”步骤@乔尔森嘿,有时候人们很挑剔,你每走一步。我不想让任何人说我没有尝试过什么。我喜欢这篇文章。它代表了我使用MSDTC的所有经验。在我的例子中,在链接服务器上将“Enable P_Sql Server_Sql Server 2005_Msdtc_Distributed Transactions - Fatal编程技术网

Sql server ting,允许DTC服务,它成功了。很高兴看到您没有跳过关键的“诅咒和诅咒”步骤@乔尔森嘿,有时候人们很挑剔,你每走一步。我不想让任何人说我没有尝试过什么。我喜欢这篇文章。它代表了我使用MSDTC的所有经验。在我的例子中,在链接服务器上将“Enable P

Sql server ting,允许DTC服务,它成功了。很高兴看到您没有跳过关键的“诅咒和诅咒”步骤@乔尔森嘿,有时候人们很挑剔,你每走一步。我不想让任何人说我没有尝试过什么。我喜欢这篇文章。它代表了我使用MSDTC的所有经验。在我的例子中,在链接服务器上将“Enable P,sql-server,sql-server-2005,msdtc,distributed-transactions,Sql Server,Sql Server 2005,Msdtc,Distributed Transactions,ting,允许DTC服务,它成功了。很高兴看到您没有跳过关键的“诅咒和诅咒”步骤@乔尔森嘿,有时候人们很挑剔,你每走一步。我不想让任何人说我没有尝试过什么。我喜欢这篇文章。它代表了我使用MSDTC的所有经验。在我的例子中,在链接服务器上将“Enable Promotion of Distributed Transactions for RPC”设置为False后,它就可以工作了。也许试试that@HaiPhan关闭分布式事务的使用会破坏跨国完整性:如果在本地服务器上回滚更改,则意味着更改将保留在


ting,允许DTC服务,它成功了。

很高兴看到您没有跳过关键的“诅咒和诅咒”步骤@乔尔森嘿,有时候人们很挑剔,你每走一步。我不想让任何人说我没有尝试过什么。我喜欢这篇文章。它代表了我使用MSDTC的所有经验。在我的例子中,在链接服务器上将“Enable Promotion of Distributed Transactions for RPC”设置为False后,它就可以工作了。也许试试that@HaiPhan关闭分布式事务的使用会破坏跨国完整性:如果在本地服务器上回滚更改,则意味着更改将保留在远程服务器上。非常危险。让我们看看我是否正确:1-msdtc-卸载2-msdtc-安装3-重新启动SQL Server服务4-重新启动SQL代理服务,只是为了确保5-甚至重新启动“分布式事务协调器”服务。。。我在两台机器(主服务器和链接服务器)a~上都做了这些,但什么也没有做,仍然是相同的错误!这对我有用。奇怪的是,天气已经好了好几个星期,然后突然开始了。可能是因为远程服务器的DTC服务可能已禁用。无论如何,谢谢你,太棒了。你知道写这个的方法吗?在我所有的服务器上,所有链接的服务器对象都将“启用分布式事务的升级”设置为true,但我还无法确定是谁做的。这本书太乏味了。@WonderWorker我刚刚添加了一个示例SQL脚本,您可以使用,试一试!这对我有用。谢谢
BEGIN DISTRIBUTED TRANSACTION
SELECT TOP 1 * FROM Sessions


OLE DB provider "SQLNCLI" for linked server "ASILIVE" returned message "No transaction is active.".

Msg 7391, Level 16, State 2, Line 3
The operation could not be performed because OLE DB provider "SQLNCLI" for linked server "ASILIVE" was unable to begin a distributed transaction.
Number: $80040E14
Source: Microsoft OLE DB Provider for SQL Server
Description: OLE DB provider "SQLNCLI" for linked server "ASILIVE" returned message "No transaction is active.".
HelpFile: 
HelpContext: $00000000
SQLState: 01000
NativeError: 7412
Number: $80040E14
Source: Microsoft OLE DB Provider for SQL Server
Description: The operation could not be performed because OLE DB provider "SQLNCLI" for linked server "ASILIVE" was unable to begin a distributed transaction.
HelpFile: 
HelpContext: $00000000
SQLState: 42000
NativeError: 7391
    SELECT * FROM ASILive.CustomerManagementSystem.dbo.Users
    ....

    (763 row(s) affected)
     C:\Documents and Settings\avatar>ping asicmstest.contoso.com

     Pinging asicmstest.contoso.com [10.0.0.40] with 32 bytes of data:

     Reply from 10.0.0.40: bytes=32 time<1ms TTL=128
     Reply from 10.0.0.40: bytes=32 time<1ms TTL=128
     Reply from 10.0.0.40: bytes=32 time<1ms TTL=128
     Reply from 10.0.0.40: bytes=32 time<1ms TTL=128

     Ping statistics for 10.0.0.40:
         Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
     Approximate round trip times in milli-seconds:
         Minimum = 0ms, Maximum = 0ms, Average = 0ms
     C:\Documents and Settings\avatar>ping asitestserver.contoso.com

     Pinging asitestserver.contoso.com [10.0.0.22] with 32 bytes of data:

     Reply from 10.0.0.22: bytes=32 time<1ms TTL=128
     Reply from 10.0.0.22: bytes=32 time<1ms TTL=128
     Reply from 10.0.0.22: bytes=32 time<1ms TTL=128
     Reply from 10.0.0.22: bytes=32 time<1ms TTL=128

     Ping statistics for 10.0.0.22:
         Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
     Approximate round trip times in milli-seconds:
         Minimum = 0ms, Maximum = 0ms, Average = 0ms
   SELECT @@SERVERNAME, SERVERPROPERTY('MachineName')

   -------------  -------------
   ASITESTSERVER  ASITESTSERVER
   SELECT @@SERVERNAME, SERVERPROPERTY('MachineName')

   ----------  ----------
   ASIGROBTEST  ASIGROBTEST
SET XACT_ABORT ON
GO
BEGIN DISTRIBUTED TRANSACTION
SELECT TOP 1 * FROM Sessions
HKEY_LOCAL_MACHINE\Software\Microsoft\MSSQLServer
msdtc -uninstall
msdtc -install