473,386 Members | 1,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

SQL-Server <-> A97 Write conflict error!

I have a few tables in SQL Server 2000 and a small Access 97 that has
linked tables used to insert/update/delete into SQL Server 2k tables.

Everything works fine except Updating one of these table through
Access, I get
"Write conflict error" which basicaly says since you have updated
this record some other user has updated it. I know for sure this is
not True, becuase noone else has access t this database.
This does not happen to any other table only the one I have trouble
wiht.
Sounds crazy and it is driving me nuts!!!!!!

I have tried everythig, strippped off the triggers on the table and

I would really initiate your help in advance.
Fardad
Nov 12 '05 #1
3 2147
I'll bet your table has at least one memo field.

Add a timestamp field to the table in SQL Server, and everything
will be fine. The problem is that, because of the memo field, the
client can't determine with certainty that the record hasn't been
changed by someone else. Just add the timestamp and see what
happens.
--

Danny J. Lesandrini
dl*********@hotmail.com
http://amazecreations.com/datafast
"Fardude" <fa*****@bes.ci.portland.or.us> wrote ...
I have a few tables in SQL Server 2000 and a small Access 97 that has
linked tables used to insert/update/delete into SQL Server 2k tables.

Everything works fine except Updating one of these table through
Access, I get
"Write conflict error" which basicaly says since you have updated
this record some other user has updated it. I know for sure this is
not True, becuase noone else has access t this database.
This does not happen to any other table only the one I have trouble
wiht.
Sounds crazy and it is driving me nuts!!!!!!

Nov 12 '05 #2
"Danny J. Lesandrini" <dl*********@hotmail.com> wrote in message news:<bt************@ID-82595.news.uni-berlin.de>...
I'll bet your table has at least one memo field.

Add a timestamp field to the table in SQL Server, and everything
will be fine. The problem is that, because of the memo field, the
client can't determine with certainty that the record hasn't been
changed by someone else. Just add the timestamp and see what
happens.
--

Danny J. Lesandrini


In my experience this isn't caused by a Memo field, but by a date
field. When Access retrieves the date from SQL Server, it does some
rounding or truncating, and so when the time comes to update the
record, and the two records are compared, the date fields don't match,
and so Access thinks that someone has been and gone and changed the
record. Danny is right about the timestamp field - this should sort
the problem.

Edward
--
The reading group's reading group:
http://www.bookgroup.org.uk
Nov 12 '05 #3
On 6 Jan 2004 01:52:51 -0800, te********@hotmail.com (Edward) wrote:
"Danny J. Lesandrini" <dl*********@hotmail.com> wrote in message news:<bt************@ID-82595.news.uni-berlin.de>...
I'll bet your table has at least one memo field.

Add a timestamp field to the table in SQL Server, and everything
will be fine. The problem is that, because of the memo field, the
client can't determine with certainty that the record hasn't been
changed by someone else. Just add the timestamp and see what
happens.
--

Danny J. Lesandrini


In my experience this isn't caused by a Memo field, but by a date
field. When Access retrieves the date from SQL Server, it does some
rounding or truncating, and so when the time comes to update the
record, and the two records are compared, the date fields don't match,
and so Access thinks that someone has been and gone and changed the
record. Danny is right about the timestamp field - this should sort
the problem.

Edward


That's basically right. Memo fields are ignored by Access optimistic locking
leading to false negatives, and date and floating point number fields are
subject to rounding error leading to false positives. In my experience, date
fields actually aren't the most common cause, floating point numbers are.

If you add a TIMESTAMP column, that solves both types of problem. Since JET
knows it can use the TIMESTAMP as a simple and incontrovertible check to see
if data has been changed, it uses that and does not check the other field
values.
Nov 12 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Smriti Dev | last post by:
Hi, I have a ms access table table which is linked to a mysql database table. I have used a ms access form to edit records. However, when I attempt to edit a record I get a write conflict error...
0
by: manning_news | last post by:
Using A2K. I've got a form for clients that has a subform that is a cartesian product between client ID and a lookup table for types of income. So each client has the exact same number of income...
3
by: rivka.howley | last post by:
I recently added some code to the BeforeUpdate event of a text box on a form. The code uses the new value in the text box to recalculate some values in another table, which is shown in a subform on...
1
by: S.Dickson | last post by:
I have a database with access as front end and Mysql as back end. I am gettting the following 'Write Conflict' Error. when i am on my order form, This form does has a subform where i enter all the...
2
by: mrsgwen90 | last post by:
I am trying to update a record using access as the front end and VB 6.0 as the backend. I am using a SQL statement to accomplish this. But I am getting the "Write Conflict Error". I have tried...
3
by: gazsharpe101 | last post by:
Hi everyone, I am doing some work on my company's database. It is a MS Access 2003 front-end with an SQL back-end. Recently, I have asked the database administrator to add some new fields to...
4
by: AccessBeetle | last post by:
I have a simple form based on a table which has several controls and subforms. When I open the form and try to edit things it gives me this trritating error saying "Write Conflict". It has three...
4
by: Rolrox | last post by:
I've discovered that in Sybase, I had a field/column whose datatype was defined as "bit" which also permitted NULL values. When I changed this to smallint, the write conflict went away.
1
by: Ryan Swaby | last post by:
I have an access form that is bound to an ado recordset using the following code in the form open event. Dim cn As ADODB.Connection Dim rs As ADODB.Recordset 'Use the ADO...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.