> Is it possible to tell if SQLite has a database file locked? Not through > OS tools, but from System.Data.SQlite?
If you can execute BEGIN EXCLUSIVE TRANSACTION and get back SQLITE_OK then there were no locks on the database. Of course you will then need to ROLLBACK. Note that this will only work well if you have no busy timeout or bust handler set. e