ORA-01843: Not a valid month + adonet + oledb provider

From: Wendell Rios (wendellrios_at_yahoo.com.br)
Date: 01/12/05


Date: 12 Jan 2005 04:33:29 -0800

Hi all,

I'm getting this message when updating a oracle date field in
production.
That works fine in development, there is, I couldn't reproduce this
behavior.

The user reported he could updated one record, but when tried to do it
for the next record this error message started to appear.

The SQL Update statement is using parameters. I'm providding here a
snippet of my code:

If you have any answer or suggestion, please feel free to contact me
at NO_SPAMwendellrios@axen.com.br.

Thank you,

Wendell Rios.

//
// cmdUpdate
//
cmdUpdate.CommandText = @"UPDATE tblUser SET dtBalanceUpdate = ?,
idContainer = ?, nmUser = ?, vlBalance = ?, vlQuota = ? WHERE (idUser
= ?) ";
cmdUpdate.Connection = cn;
cmdUpdate.Parameters.Add(new
System.Data.OleDb.OleDbParameter("dtBalanceUpdate",
System.Data.OleDb.OleDbType.DBDate, 0, "dtBalanceUpdate"));
cmdUpdate.Parameters.Add(new
System.Data.OleDb.OleDbParameter("idContainer",
System.Data.OleDb.OleDbType.Integer, 0, "idContainer"));
cmdUpdate.Parameters.Add(new
System.Data.OleDb.OleDbParameter("nmUser",
System.Data.OleDb.OleDbType.VarWChar, 255, "nmUser"));
cmdUpdate.Parameters.Add(new
System.Data.OleDb.OleDbParameter("vlBalance",
System.Data.OleDb.OleDbType.Double, 0, "vlBalance"));
cmdUpdate.Parameters.Add(new
System.Data.OleDb.OleDbParameter("vlQuota",
System.Data.OleDb.OleDbType.Double, 0, "vlQuota"));
cmdUpdate.Parameters.Add(new
System.Data.OleDb.OleDbParameter("Original_idUser",
System.Data.OleDb.OleDbType.Integer, 0,
System.Data.ParameterDirection.Input, false, ((System.Byte)(0)),
((System.Byte)(0)), "idUser", System.Data.DataRowVersion.Original,
null));



Relevant Pages

  • Re: Adding columns to SQL Server tables dynamically
    ... So would you recommend a production app to add columns through ado.net ... > fragmentation in Sql Server or Oracle. ... > nullable column and then updating each row. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Connecting to an Oracle database
    ... PL/SQL Release 2.3.4.0.0 - Production ... I now succeded to connect to the database in Delphi with the ADO ... > use it to connect to the database and immediately after you connect Oracle ... > conform to their programming paradigm. ...
    (borland.public.delphi.database.ado)
  • Re: Adding columns to SQL Server tables dynamically
    ... First of all reading tables rarely gets all the way to the "hard disk head". ... fragmentation in Sql Server or Oracle. ... nullable column and then updating each row. ...
    (microsoft.public.dotnet.framework.adonet)
  • Are there performancebenefits to reorganizing database-using export/import?
    ... I am using Oracle 9.2.0.5 on HP UNIX 11i. ... I have a production database using Oracle 9.2.0.5, ... time we had done full export of 8.1.7 database and then created 9.2. ... all objects from application schemas and do schema imports. ...
    (comp.databases.oracle.server)
  • Veritas and RMAN restores
    ... Production Veritas VM3.2 and FS3.4 ... Oracle seems to believe that the difference in Volumen Manager ... RMAN-08523: restoring datafile 00001 to ... failure during compilation of command ...
    (SunManagers)