How do I open a SQL CE4 .sdf database file?

willem picture willem · Apr 8, 2011 · Viewed 27.9k times · Source

I installed Microsoft WebMatrix, which, I believe comes with SQL Server CE4. I've tried opening the SDF file in SQL Management Studio (SQL 2008), but I get the following error message:

-------- Microsoft SQL Server Management Studio: There is no editor available for 'C:\efTest\App_Data\SchoolRepository.sdf'.

Make sure the application for the file type (.sdf) is installed.

How do I view/modify my .sdf database?

I see there is a similar question on StackOverflow (http://stackoverflow.com/questions/4070860/sql-compact-4-0-cant-open-read-sdf-file) but I would really like to use Management Studio if I can, and not another 3rd party tool.

Answer