I am definitely no SQLite expert either!
However a simple method could be - do a SELECT * on the table and open it with DataReader, then use FieldCount to test if the fields exist. Finally do ALTER TABLE with an ExecuteNonQuery, if needed.
Alternatively, if you need more column information, use ExecuteTable instead, then the Table control's ColCount and ColName properties.
Just a suggestion.
Geoff.
|