Thanks for the respond.
I will test for the existence of the file before trying to open it.
Once again thanks,
JP





________________________________
From: P Kishor <punk.k...@gmail.com>
To: General Discussion of SQLite Database <sqlite-users@sqlite.org>
Sent: Monday, December 15, 2008 10:43:57 AM
Subject: Re: [sqlite] Open the database - Creating the empty database

On 12/15/08, Joanne Pham <joannekp...@yahoo.com> wrote:
> Hi All,
>  I have this problem about open the database. Here is the detail about the 
>problem.
>
>  Our application have one process to create the database and another process 
>to open the database and creating the report.
>  The problem here is the database is not created but if the second process 
>has tried to access the database then the empty database is created which has 
>the size of 0. So the question is there any way the open database API should 
>return an error message instead of creating the empty database when the second 
>process opens the database.
>
>  Thanks,


A SQLite database is just a file on the hard disk. Test for the
existence of the file before trying to open it.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users



      
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to