Re: Concurrency violation
- From: "Zhuo Li" <zli@xxxxxxxxxx>
- Date: Fri, 19 Sep 2008 08:09:44 -0400
Thank you for your reply. I think that it is something to do with the
datetime field and the dataset. When the dataset tries to save a row to the
database, it compares its "Original data"of the row with what is in the
database. This comparison always result in difference in the datetime field.
If there were a simple solution, there would be something in the dataset
configuration to set the rule of comparing two datetime values only upto
second. Any idea?
Thanks,
Zhuo
"Zhuo Li" <zli@xxxxxxxxxx> wrote in message
news:e8FG3VZGJHA.212@xxxxxxxxxxxxxxxxxxxxxxx
Hi, I get this error when I try to save a datatime field to the database
using OdbcDataAdapter.Update method.
oAdapter.UpdateCommand.CommandText is like: "update aTable set
effetive_from =? where primarykey=?"
The parameter related to this field is like:
oAdapter.UpdateCommand.Paramteres.Add(new OdbcParameter("effective_from",
Odbctype.datetime, 8, "effective_from");
The database is Sybase ASA 9.0. The column effective_from's type is
datatime in the database.
Any suggestions/ideas?
Thanks, Zhuo
.
- Follow-Ups:
- Re: Concurrency violation
- From: Ken Foskey
- Re: Concurrency violation
- References:
- Concurrency violation
- From: Zhuo Li
- Concurrency violation
- Prev by Date: how do I get the number of rows in a linq set
- Next by Date: Re: Random
- Previous by thread: Re: Concurrency violation
- Next by thread: Re: Concurrency violation
- Index(es):
Relevant Pages
|