I would like to use the SqlCeEngine
class to build a database and populate it with tables (like this question) but using a script generated by ExportSqlCE.
I was wondering if this was possible using SqlBulkCopy
? (A SQL Server CE version which has been replicated here).
Or if there is another solution to quickly populating a .sdf
database file with tables and constraints (28 tables, 52 constraints, most columns cannot be null).
When my application loads I check to see if the database file exists. In the eventuality that this file is missing (or when the program is loaded for the first time after installation) I want to be able to re-generate an empty database.
I created the database using DataPort Console because as its my first real database application I wanted to design the database graphically.