Article ID: 296076 - Last Review: March 26, 2008 - Revision: 6.2 A Windows CE device power failure that occurs during a transaction commit may cause a SQL Server CE database to be marked suspectThis article was previously published under Q296076 SYMPTOMSA power failure or an explicit reset that occurs during a
transaction commit may cause a Microsoft SQL Server 2000 Windows CE (SQL Server
CE) database to be marked suspect. You may not be able to recover the database,
even if you use the Compact method. Note The Compact method and the CompactDatabase method are the same methods in SQL Server 2000 Windows CE Edition. The method that you use depends on the development environment that you use. Use the Compact method in applications that are created with Microsoft Visual Studio .NET. Use the CompactDatabase method in applications that are created with Microsoft eMbedded Visual Tools. CAUSEYou may experience this problem when any one of the
following actions occurs during a transaction commit:
If this problem occurs, the database will be marked suspect. A transaction commit includes all the Data Manipulation Language (DML) statements that are not explicitly in a transaction. Depending on the stage of writing data from the temporary database and the SQL Server CE cache, the database might be left in an unrecoverable state. This problem can occur when you are writing to any storage medium, including RAM. WORKAROUNDThe Compact method will try to repair a suspect database. However, the Compact
method may not be able to recover the database. To minimize the effect of this problem, use the following guidelines:
MORE INFORMATION The following types of corruption may occur:
Physical corruption is something that damages part of a file to the point that the hardware does not recognize the data. This article discusses a physical corruption problem. The "CompactDatabase Method" topic in SQL Server CE Books Online states: "If SQL Server CE is terminated when writing data because of power failure or a
full disk, the data can become corrupted." | Article Translations
|
Back to the top
