FIX: SQL Server CE eMbedded Visual Basic CompactDatabase Unable to Fix Corrupted Database (306452)
The information in this article applies to:
- Microsoft SQL Server 2000 Windows CE Edition 2.0
- Microsoft SQL Server 2000 Windows CE Edition
- Microsoft SQL Server 2000 Windows CE Edition 1.1
This article was previously published under Q306452 SYMPTOMS A corrupted database may produce the following error
message in the Microsoft SQL Server 2000 Windows CE Edition (SQL Server CE)
Query Analyzer if you attempt to open a connection:
Error: 0x80004005 E_FAIL Minor Error: (25017) Description:
Unspecified Error The error code is SSCE_M_DATABASECORRUPTED
(Non-database file or database file corrupted). A Microsoft embedded
Visual Basic (eVB) application that uses the CompactDatabase method is not able to compact a corrupted SQL Server CE database.
An attempt to call the CompactDatabase method may return the following error message:
Error: -2147467259 Compact CAUSE The engine ActiveX code for CompactDatabase tries to initialize the source database before compacting the
source database. If the initialize fails, the CompactDatabase method aborts. Hence, you cannot use the CompactDatabase method on a corrupted database because the Initialize method on a corrupted database always fails. RESOLUTIONTo resolve this problem, obtain the latest service pack for
Microsoft SQL Server 2000 Windows CE Edition. For additional information, click
the following article number to view the article in the Microsoft Knowledge
Base: 316498 INF: How to Obtain the Latest SQL Server 2000 Windows CE Edition Service Pack
WORKAROUND To work around this problem use the Microsoft embedded
Visual C ++ (eVC++) to implement the OLE DB Compact method. STATUSMicrosoft
has confirmed that this is a problem in the Microsoft products that are listed
at the beginning of this article.
This problem was first
corrected in Microsoft SQL Server 2000 Windows CE Edition Service Pack
1.
Modification Type: | Minor | Last Reviewed: | 8/25/2005 |
---|
Keywords: | kbbug kbfix kbSqlServ2000CEEsp1fix KB306452 |
---|
|