Log.Info("Could not find Device Database.") SDF into a backup folder: if (File.Exists(Resources.DatabaseFileLocation))įile.Delete(Resources.BackupDatabaseFileLocation) įile.Copy(Resources.DatabaseFileLocation, Resources.BackupDatabaseFileLocation) If the application is verified properly then I copy the. ![]() Log.Info("Database Verification successful.") Log.Info("Database successfully repaired.") Log.Warn("Database failed verification.") Įngine.Repair(null, RepairOption.RecoverAllOrFail) Log.Info("Starting database Verification.") SDF database file to check using the SQL Server CE Engine class: using (SqlCeEngine engine = new SqlCeEngine(Resources.SqlCeConnectionString)) When the CF application starts up it performs database maintenance to verify the. NET CF application that uses a SQL Server CE 3.5 SP2 database. I've been getting this random issue in my.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |