启用分布式事务
数据库端开启选项 ‘remote proc trans’

解决方案 »

  1.   

    使用ado.net分布式事务.using System.EnterpriseServices;
    TransactionOption=TransactionOption.Required
      

  2.   

    using (TransactionScope ts = new TransactionScope())
    {
        // 在这里编写需要具备Transaction的代码
        ts.Complete();

    我用TransactionScope 类,非常管用
      

  3.   

    zefuzhang2008 SQL code启用分布式事务
    数据库端开启选项 ‘remote proc trans’这是什么意思,可以详细些吗