SQLITE: Database is locked
Posted: Sat 14 Mar 2015 17:26
I'm using Unidac 5.3 with SQLite provider.
I have to access database file from some different applications simultaniosly.
I created simple delphi application that creates 1 TUniConnection plus 1 TUniTable.
When it started i run application #2 which access the same database file for update.
So application #2 gets "Database is locked" when tries to commit its updates.
How can i open TUniTable and not lock database file?
My experimets show that problem raise only when i access table with recordcount exceeded TUniTable.FetchRows. When opened table has recordcount less then FetchRows than database file is not locked.
I tried TUniConnection.DisconnectedMode := True with TUniTable.FetchAll := True but it did not help.
I have to access database file from some different applications simultaniosly.
I created simple delphi application that creates 1 TUniConnection plus 1 TUniTable.
When it started i run application #2 which access the same database file for update.
So application #2 gets "Database is locked" when tries to commit its updates.
How can i open TUniTable and not lock database file?
My experimets show that problem raise only when i access table with recordcount exceeded TUniTable.FetchRows. When opened table has recordcount less then FetchRows than database file is not locked.
I tried TUniConnection.DisconnectedMode := True with TUniTable.FetchAll := True but it did not help.