I have an application with a SQL Server CE private install. We want to give the user the option to keep the database on uninstall in case they re-install later or upgrade, which is my problem…
If they leave the database from version 1.5 of my app on the machine, then install version 2.0 how can I detect during installation of version 2.0 what version db they have?
Is there any way to tag or set metadata on an SQL Server CE database that can be read later?
The only alternative I have at the moment is to compare schemas which is not something I want to do.
Add a table with a single int column in the database with one row, containg the schema version.