INSERT, UPDATE and DELETE Records Are Lost On Reset (308250)



The information in this article applies to:

  • Microsoft Windows CE Platform SDK for Pocket PC 2002
  • Microsoft Windows CE Platform SDK for Handheld PC 2000
  • Microsoft Windows CE Platform Builder 3.0

This article was previously published under Q308250

SYMPTOMS

When you are using ADOCE to manage a database, INSERT, UPDATE, and DELETE records may be lost. This symptom may occur if the Windows CE device is reset before the database connection object is closed.

CAUSE

ADOCE opens a database as a mounted object, and caches all writes to the database object until the object is closed. Resetting the device does not give the operating system the opportunity to write the cached data to real storage, so all of the changes to the database are lost.

RESOLUTION

A supported fix is now available from Microsoft, but it is only intended to correct the problem that is described in this article. Apply it only to computers that are experiencing this specific problem. This fix may receive additional testing. Therefore, if you are not severely affected by this problem, Microsoft recommends that you wait for the next release of ADOCE for your platform that contains this hotfix.

To resolve this problem immediately, contact Microsoft Product Support Services to obtain the fix. For a complete list of Microsoft Product Support Services phone numbers and information about support costs, visit the following Microsoft Web site:NOTE: In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The typical support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

The English version of this fix should have the following file attributes or later:
   Date           Time   Version     Size      File name      Platform
   -------------------------------------------------------------------
   11-Sep-2001    12:42  3.10.0.249  128,090   Adocedb31.dll  (MPC403)
   10-Sep-2001    23:27  3.10.0.249  126,554   Adocedb31.dll  (MPC821)
   10-Sep-2001    10:12  3.10.0.249  142,938   Adocedb31.dll  (R3000)
   10-Sep-2001    19:42  3.10.0.249  141,914   Adocedb31.dll  (R4100)
   11-Sep-2001    04:24  3.10.0.249   91,738   Adocedb31.dll  (R4111)
   10-Sep-2001    20:57  3.10.0.249  141,914   Adocedb31.dll  (R4300)
   10-Sep-2001    14:20  3.10.0.249  109,146   Adocedb31.dll  (SA1100)
   10-Sep-2001    15:48  3.10.0.249   93,783   Adocedb31.dll  (SH3)
   10-Sep-2001    17:19  3.10.0.249   93,783   Adocedb31.dll  (SH4)
   10-Sep-2001    18:31  3.10.0.249   74,328   Adocedb31.dll  (Intel)
				

WORKAROUND

Close the recordset and connection object after INSERT, UPDATE, or DELETE operations have been performed. This forces a write of the cached database to real storage.

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Modification Type:MinorLast Reviewed:10/7/2005
Keywords:kbHotfixServer kbQFE kbenv kbfix kbprb kbQFE KB308250