I'm looking for a reliable way to check if a given database is opened or not.
For now, I'm checking if the lock file exists or not. But it's not for sure. A database maybe closed and for a lot of reasons, the lock file is not deleted.
Thanks for any kind of advice.
For now, I'm checking if the lock file exists or not. But it's not for sure. A database maybe closed and for a lot of reasons, the lock file is not deleted.
Thanks for any kind of advice.