交易不可用?

时间:2011-06-22 09:27:11

标签: c# asp.net transactions informix

问:

当我调用以下方法时:

con.Begin_Transaction();

方法实施:

 public void Begin_Transaction()
        {
            if (this.connection.State == ConnectionState.Open)
            {
                this.current_trans = this.connection.BeginTransaction(IsolationLevel.Serializable);
            }
        }

使用以下类:

         DbProviderFactory providerFactory;
         IfxConnection connection;
         IfxCommand command;
         IfxTransaction m_current_trans;
         IfxParameter param;
         IfxDataReader DR;

我收到以下异常:

  

IBM.Data.Informix.If异常:错误   [HY000] [Informix .NET   提供者] [Informix]交易没有   可用

请问这是什么问题? 提前谢谢。

1 个答案:

答案 0 :(得分:4)

要使交易正常运行,数据库应该记录,请检查是否已针对您的案例进行了处理,因为需要撤消更改

相关问题