SQL Compact 4.0 can't open/read sdf file

Andre Vianna picture Andre Vianna · Nov 1, 2010 · Viewed 20.3k times · Source

I've installed SQL Compact 4.0 CTP 2 via WPI and used NUPack to add SQLCE.EntityFramework in my project. It compiles and run perfectly but I can't open the SDF file in Visual Studio 2010's Server Explorer.

When I try I always receive the following message:


Microsoft Visual Studio

This is not a valid SQL Server Compact Database file or this file version is not supported by current SQL Server Compact Engine.

OK

I've already tried to uninstall and reinstall everything.

It cannot be opened in SQL Server 2008 R2 Management Studio also.

Please help!!

Answer

user74754 picture user74754 · Aug 18, 2012

Installing this (Visual Studio 2010 SP1 Tools for SQL Server Compact 4.0) fixed this exact problem for me perfectly: http://go.microsoft.com/fwlink/?LinkId=212219

Props to ErikEJ from this thread: http://forums.asp.net/t/1811963.aspx/1