[Mono-list] Where does Mono.Data.Sqlite create its database file?

Robert Jordan robertj at gmx.net
Mon Apr 28 06:52:41 EDT 2008


Agro Rachmatullah wrote:
> Please look at this program:
> 
> http://pastebin.com/f100ca875 (mono and os info there)
> 
> In short, this program creates an SQLite database, creates a table
> inside it, populates the table, and finally reads the rows.
> 
> In particular, take note of the connection string:
> 
> conn = new SqliteConnection("Data Source=file:supernew.db");
> 
> The program works, however I didn't find any "supernew.db" in the
> application's directory. Running a full search on my hard disk also
> returns no such file. However, running the program for the second time
> gives me "table foo already exists" exception, which shows that the
> file must exist somewhere! Where is it located and what is it named?

It's named "file" and it's located in the current directory :-)

Please file a bug at http://www.mono-project.com/Bugs
and specify that the bug only occurs if the current directory !=
application directory.

Robert



More information about the Mono-list mailing list