I just had my eM Client to lock down on me. I have never had this type of issues before.

System.Data.SQLite.SQLiteException (0x80004005): database is locked
database is locked
   at System.Data.SQLite.SQLite3.Step(SQLiteStatement stmt)
   at System.Data.SQLite.SQLiteDataReader.NextResult()
   at System.Data.SQLite.SQLiteDataReader…ctor(SQLiteCommand cmd, CommandBehavior behave)
   at System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   at System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
   at MailClient.Storage.Data.DataStore.GetConnection(String relativeName)
   at DbRepair.CorruptionChecker.CheckCorruption()
   at DbRepair.FormCheck.Check(Object state)

The error message told me to email this to eM Client.  I had no email to send this to, so I’m posting.  Very disappointed right about now… I need to use my email very urgently… HELP!!!

I have the same problem as you…

System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformeddatabase disk image is malformed
   v System.Data.SQLite.SQLite3.Prepare(SQLiteConnection cnn, String strSql, SQLiteStatement previous, UInt32 timeoutMS, String& strRemain)
   v System.Data.SQLite.SQLiteCommand.BuildNextCommand()
   v System.Data.SQLite.SQLiteCommand.GetStatement(Int32 index)
   v System.Data.SQLite.SQLiteDataReader.NextResult()
   v System.Data.SQLite.SQLiteDataReader…ctor(SQLiteCommand cmd, CommandBehavior behave)
   v System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)
   v System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
   v System.Data.SQLite.SQLiteConnection.Open()
   v MailClient.Storage.Data.DataStore.GetConnection(String relativeName)
   v DbRepair.CorruptionChecker.CheckCorruption()
   v DbRepair.FormCheck.Check(Object state)

+1

Hello Jura,

From what I see, the database is probably corrupted.
Then if you have done backup recently, you can simply restore the database in Menu > File.

If not and you have all your data saved on servers you can fix it with using blank database. First you need to have your eM Client application closed. Then you delete the database folder (C:\Users%Current User%\AppData\Roaming\eM Client) and start eM Client again. This will open the application with a new empty database and eM Client will automatically synchronise with your email accounts.

To see the database location you need to view hidden folders in Windows:
https://support.microsoft.com/en-us/help/14201/windows-show-hidden-files

Hope this helps

Hi James,

It seems that another application is accessing the database at the same time as eM Client. You should fix it simply by restarting your computer.

Regards.

Regarding:
> It seems that another application is accessing the database at the same time as eM Client.

In case I ever run into the same problem, I’d be interested to know: what other application or kind of application might be able to open eM Client’s database at the same time?

I don’t know what the database file’s name is, but if I know what the name is, I can use an application like Microsoft’s “Handle64” (there’s probably also a version for 32-bit operating systems) to query the system for the names of programs that have a given file open at a given moment.

What is the name and location of eM Client’s database file? Thanks.

Could be your antivirus software.  The default path and filename is c:\users[user_name]\AppData\Roaming\eM Client\mail_data.dat.  Please note that the data file may be buried in a cryptically named folder, so you may have to search for the file in the eM Client directory.  There also may be a few files with that name, the largest one would be your main mail store.

Thanks a lot! You are the best! It working now…

I have used EM Client for over a Year.  I will repeat this suggestion in other topics to help others avoid error problems as well.

Uninstall any Registry Optimizers/Cleaners that are standalone or included in other programs. Registry Optimizers/Cleaners can and do break programs by altering or removing necessary Keys and Values, destroying the proper functioning of many third party programs i.e. Browsers, email clients, VoIP, etc.

If you are using CCleaner then stick with the Cleaner feature but leave the Registry cleaner alone.

Well, I’m having the same problem. I have already backed up and reinstalled the client. When I copy the backup mail_data.dat I log in again on the client and it shows the error. Not being able to repair or recover the backup. Error:

System.Data.SQLite.SQLiteException (0x80004005): database disk image is malformed

database disk image is malformed

   em System.Data.SQLite.SQLite3.Prepare(SQLiteConnection cnn, String strSql, SQLiteStatement previous, UInt32 timeoutMS, String& strRemain)

   em System.Data.SQLite.SQLiteCommand.BuildNextCommand()

   em System.Data.SQLite.SQLiteCommand.GetStatement(Int32 index)

   em System.Data.SQLite.SQLiteDataReader.NextResult()

   em System.Data.SQLite.SQLiteDataReader…ctor(SQLiteCommand cmd, CommandBehavior behave)

   em System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)

   em System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()

   em System.Data.SQLite.SQLiteConnection.Open()

   em MailClient.Storage.Data.DataStore.GetConnection(String relativeName)

   em DbRepair.CorruptionChecker.CheckCorruption()

   em DbRepair.FormCheck.Check(Object state)