Re: Concurrency violation
- From: Ken Foskey <rmove.foskey@xxxxxxxxxxxxxxxx>
- Date: 19 Sep 2008 07:32:30 +1000
On Thu, 18 Sep 2008 09:50:08 -0400, Zhuo Li wrote:
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
The simplest way is to disable concurrency checking. In your database
set up click on the table and then check the settings, advanced from
memory and remove it. There are multiple descriptions of how to handle
the problem (generally with autonumber primary keys) but if you are using
a database exclusively it is not worth the effort
Ken
.
- References:
- Concurrency violation
- From: Zhuo Li
- Concurrency violation
- Prev by Date: Re: Web.sitemap Question
- Next by Date: dynamic generic creation using Type.GetType(string)?
- Previous by thread: Concurrency violation
- Next by thread: Re: Concurrency violation
- Index(es):
Relevant Pages
|
Loading