sqlite corrupted when copied
Posted: Thu Aug 29, 2019 11:28 pm
Dear Everyone
Could anyone tell me why my sqlite db file gets corrupted when I copy it?
The DB is located in the special folder documents for the app, I would then like to copy it to the special folder external documents at the end of the app / as it closes (which is the folder that a google drive app watches and syncs)
If I change the original location of the DB to external documents its fine, but if I try and copy it, it gets corrupted.
I've tried copying other things and they are also fine, just not the DB.
I think possibly its because there are open connections to the database at the time I'm trying to copy it, maybe?
Could someone tell me the simplest way to make sure all the connections are closed / whether this could be the problem / or what else it might be?
I have been using the put URL command btw.
As ever, any help very much appreciated.
Kind regards
Paul
Could anyone tell me why my sqlite db file gets corrupted when I copy it?
The DB is located in the special folder documents for the app, I would then like to copy it to the special folder external documents at the end of the app / as it closes (which is the folder that a google drive app watches and syncs)
If I change the original location of the DB to external documents its fine, but if I try and copy it, it gets corrupted.
I've tried copying other things and they are also fine, just not the DB.
I think possibly its because there are open connections to the database at the time I'm trying to copy it, maybe?
Could someone tell me the simplest way to make sure all the connections are closed / whether this could be the problem / or what else it might be?
I have been using the put URL command btw.
As ever, any help very much appreciated.
Kind regards
Paul