Dotnet 数据适配器错误不是有效月份 ORA-01843

问题描述

我正在使用我的 dotnet 应用程序将数据从数据集更新到 oracle(19c 客户端)。

    ds.Locale = System.Globalization.CultureInfo.InvariantCulture
    SALEsstOPAdapter.UpdateCommand = New OracleCommand("PKG_Salesstop.UpdateSALEsstOP",oConn)
    SALEsstOPAdapter.UpdateCommand.CommandType = CommandType.StoredProcedure
    SALEsstOPAdapter.UpdateCommand.UpdatedRowSource = UpdateRowSource.None
        param = SALEsstOPAdapter.InsertCommand.Parameters.Add("pREG_DATE",OracleDbType.Date,7,"REG_DATE")
   param.Direction = ParameterDirection.Input
   param.sourceVersion = DaTarowVersion.Current
   SALEsstOPAdapter.UpdateCommand.BindByName = True
   rowsUpdated += SALEsstOPAdapter.Update(ds,"SALEsstOP")

所以从“SALEsstOPAdapter.Update(ds,“SALEsstOP”)”我收到错误为“ORA-01843:无效月份”

有没有办法通过在参数设置中设置 nay 属性来消除此错误。 欢迎提出任何建议。

先谢谢你 桑吉塔

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)