eM Client database problem, help!

Help! Just received this error:

System.Data.SQLite.SQLiteException: The database file 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 System.Data.SQLite.SQLiteConnection.Open()
at DbRepair.DbTools.OpenConnection(String fileName)
at DbRepair.Form1.CheckCorruption()
at DbRepair.Form1.Check(Object state)

We are a business and now can’t check our emails. Can anyone help please?


Apparently it was something really simple. eM Client hadn’t closed down properly so there was a service running in the background that had the database open. So naturally it couldn’t open that database when we tried to open up eM Client again.

So. If anyone else gets this problem, try checking Task Manager.

what is the name of the service that was using the database ?


yes, database locked means that another software is using it, please be aware of that this could easily lead to broken database and loose of your all data.

If you need or want to access your database by external program make backups frequently so you will loose no or only little data.


ok I have uninstalled and deleted the AppData folder for emclient and re-installed fixed the issue. Without deleting the folder even a fresh install was not starting up.

yes fixed !!

I am glad that I could help.