I am creating a SQL Server Compact Edition database using C# code in a console application. Here is my code for creating database:
string con;
string fileName = "MiniProfilerData.sdf";
string password = "arcanecode";
if (File.Exists(fileName))
{
File.Delete(fileName);
}
con = string.Format("DataSource=\"{0}\"; Password='{1}'", fileName, password);
SqlCeEngine en = new SqlCeEngine(con);
en.CreateDatabase();
This code generates the MiniProfilerData.sdf file
Now I want to create tables in that .sdf file. I have a table creation script which will generates tables, here is the script Click Here
How can I generate tables using that TableCreationScript in my MiniProfilerData.sdf file?
Any idea?