Just my tuppence worth, but I thought I add it anyway, this is the function I use. (You'll need a "using System.Data.SQLite" clause at the top of your code)
public Boolean doesTableExist(SQLiteConnection theDatabase, String tableName)
{
SQLiteCommand cmd = new SQLiteCommand(theDatabase);
cmd.CommandText = "SELECT name FROM sqlite_master WHERE name='" + tableName + "'";
SQLiteDataReader rdr = cmd.ExecuteReader();
if (rdr.HasRows)
return true;
else
return false;
}
regards
shawty