psycho
psycho

Reputation: 632

SQLite problem "unable to open the database file"

I come to you after a lot of hours googling and reading other discussions about SQLite on StackOverflow, but I definitely can't find any explanation to my problem, so here it is :

Well, sorry for the novel, I may already thank you for reading all that stuff, no?! Anyway, if I missed something that could be useful, let me know and I'll document it as soon as possible. I hope someone will be able to help me, anyway, thank you by advance!
(And my apologies for my poor frenchie's english.)

EDIT
My problem is "solved"! After a few changes for debugging pourposes, no big modifications, and no success, I put back the code in the state I posted it... and now it works. But I really would appreciate if some someone could give me an explanation of what may have happened! It seems like SQLite behaviour (on iPad at least - never used it anywhere else) can be quite obscure at some times... :/

Upvotes: 2

Views: 8421

Answers (1)

Sorin Comanescu
Sorin Comanescu

Reputation: 4867

I wouldn't cross my fingers for this but I would try two things:

  1. If possible, pre-process the KML file to a second SQLite database and use this database to import data in the main database (thinking of lower memory/processor requirements)
  2. Transaction the imported data in small batches.

HTH

EDIT: you might have checked this already, but anyway: unable to open database.

Upvotes: 2

Related Questions