Microsoft Access Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft Access Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old March 11th, 2004, 06:52 AM
SupaHoopsa SupaHoopsa is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 9 SupaHoopsa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to SupaHoopsa
Write Conflict Error

I have a problem in my MS Access 2000 ADP front end that queries a SQL 2000 database whereby I keep getting a Write Conflict Error.

The Write Conflict brings up the following warning:

http://forums.aspfree.com/attachmen...entid=568&stc=1

If I click on Save Record, the same warning comes up, If I click on "Copy to ClipBoard" or "Drop Changes", I get a "Custome Resync" warning box:

http://forums.aspfree.com/attachmen...entid=569&stc=1

I have looked at the MS Knowledge base Article 280730 (http://support.microsoft.com/defaul...Product=acc2000) and I have ensured that any bit datatypes have a default value and I have also added a timestamp to the table design, but I still get the problem.

The table does have some fields with a 'real' datatype, but my understanding from the knowledge base article is that this shouldn't be an issue once I have added the time stamp.

I have run a SQL Profile trace and it appears to me that the update has completed successfully. I have copied the update statement into query analyzer and run it in there. It completes OK, although no records are updated.

Any help would be greatly appreciated.

Cheers,
Rich.
Attached Images
File Type: jpg WriteConflict.JPG (20.8 KB, 470 views)
File Type: jpg CustomResync.JPG (13.0 KB, 311 views)

Reply With Quote
  #2  
Old March 11th, 2004, 12:14 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 13
You need to read the article again

"Modify the data type that is in SQL Server to a non-floating point data type (for example, Decimal)."

In otherwords, get rid of the real data type.

Reply With Quote
  #3  
Old March 11th, 2004, 12:19 PM
SupaHoopsa SupaHoopsa is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 9 SupaHoopsa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to SupaHoopsa
To quote the article with regards to the 'real' data type, it says:

To resolve the problem with floating point data types, do one of the following:

Add a timestamp column to the SQL table. (JET will then use only this field to see if the record has been updated.)
Modify the data type that is in SQL Server to a non-floating point data type (for example, Decimal).
Run an Update Query to update the record. You must do this instead of relying on the recordset update

My first action was to add a timestamp column to the table - No luck
Secondly I changed all 'real' data types for decimal - still no luck

So any other ideas?

Reply With Quote
  #4  
Old March 11th, 2004, 12:23 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 13
I racking my brain trying to think of what else could be giving you these problems. Are you using bound or unbound forms?

S_

Reply With Quote
  #5  
Old March 11th, 2004, 12:29 PM
SupaHoopsa SupaHoopsa is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 9 SupaHoopsa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to SupaHoopsa
The form is bound to a stored procedure, although this procedure only queries the single table.

I say bound, I'm afraid I am no expert here. Would I be correct in saying that it is 'bound' if the form.recordsource property is set to the name of the stored procedure?

Reply With Quote
  #6  
Old March 11th, 2004, 01:05 PM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 13
I believe you problem is that you recordsource is bound to a stored procedure versus a view. I don't beleive that SP/s where ever intended for that use, they can bring you back a recordset, but I believe that the transfer in information in this instance is one way. You need to use a view, or write back you updates using ADO, or through someother kind of connection string

I have never tried doing it that way you are stating, so I can't be sure.

S-

Reply With Quote
  #7  
Old March 12th, 2004, 06:25 AM
SupaHoopsa SupaHoopsa is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Posts: 9 SupaHoopsa User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to SupaHoopsa
Thanks for your help on this.

I have found the problem !!

We have another CAD application which I have found is updating the same table. It runs alongside my application.

The CAD application updates just two fields on the same table and as I don't need these in my application, I have just changed my SP from Select * to Select specific records (ignoring the two fields that the CAD app is updating).

Reply With Quote
  #8  
Old March 12th, 2004, 11:43 AM
sbaxter sbaxter is offline
Moderator: Access, SQL
ASP Free God (5000 - 5499 posts)
 
Join Date: Oct 2003
Posts: 5,126 sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level)sbaxter User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 4 Days 1 h 2 m 51 sec
Reputation Power: 13
Good for you.

S-

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft Access Help > Write Conflict Error


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT