views:

22

answers:

2

I've downloaded the install files and ran them, I get some binaries in my program files folder and I've added a reference in my project to the dll. But how the heck to I create the .sdf file? It feels like I'm missing some sort of obvious clue...

+2  A: 

Here's an example using the SqlCeEngine class to create a database and SqlCeConnection to start querying this database.

Darin Dimitrov
Thnx! That worked and made me realize that currently there is no support in VS2010 for CE4.0... ;)
noocyte
+1  A: 

You can use WebMatrix or http://sqlcetoolbox.codeplex.com (standalone) to create SQL Server Compact 4.0 database files.

ErikEJ