How can I with \"code\" create a new .mdf/.sdf database?
I\'ve tried this: http://support.microsoft.com/kb/307283
All it does is fail on the ConnectionString
Regarding .sdf files (SQL Server CE), you can use the SqlCeEngine class to create a new database, as described in this MSDN article.
SqlCeEngine