Thanks a lot dirkx. My current working directory was not writable. It's working now :) Thanks a lot :)
On Mon, Jul 13, 2015 at 9:51 PM, <di...@webweaving.org> wrote: > > > char *zErrMsg; > > rc = sqlite3_open("a.db", &db); > > if (rc) { > > Besides the faulty error trapping in the other mail - it just occurred to > me that your default/current working directory is also in a place you are > unlikely to be allowed to write > > So I would out the correct path there; or for testing use > > > rc = sqlite3_open(“/tmp/a.db", &db); > > in conjunction with not using exit0) & adding error logging. > > Dw. > >