... the DataTable is replaced by a value generated by the database. You need to retrieve the new value to keep the DataTable synchronized with the database. Solution Use Oracle's CURRVAL and ... cmd.Parameters.Add(ID_PARM, OracleType.Int32).Direction = ParameterDirection.Output; cmd.Parameters.Add(FIELD1_PARM, OracleType.NVarChar, 50); cmd.Parameters.Add(FIELD2_PARM, OracleType.NVarChar, ... Team LiB ] Recipe 4.4 Getting a Sequence Value from Oracle Problem When you add a row into an Oracle table that uses a sequence to generate the value for a primary key column, the value assigned...