如何创建一个新的SQL Server Compact数据库文件(。自卫队)编程,而无需现有的模板文件的复制?
How can I create a new SQL Server Compact database file (.sdf) programmatically, without having an existing template file to copy from?
这里有一些好消息:的用C#创建SQL Server Compact Edition数据库
There is some good info here: Create a SQL Server Compact Edition Database with C#
string connectionString = "DataSource="test.sdf"; Password="mypassword"";
SqlCeEngine en = new SqlCeEngine(connectionString);
en.CreateDatabase();