Sql-server – Cannot open .sdf files in SQL Server Management Studio 2008 SP3

sql serversql-server-ce

Has made a .sdf database file in Microsoft Visual Web Developer 2010. When I try to open it in SQL Server Management Studio 2008 Service Pack 3, it displays error message:

Cannot connect to C:\Users\Xtreme\Documents\Dishes.sdf.

Incompatible Database Version. If this was a compatible file, run
repair. For other cases refer to documentation. [ Db version =
4000000,Requested version = 3505053,File name =
\?\C:\Users\Xtreme\Documents\Dishes.sdf ] (SQL Server Compact ADO.NET
Data Provider)

What is wrong? There is no problem to work with the .sdf in Microsoft Visual Web Developer 2010.

Best Answer

You cannot use SSMS to open SQL CE 4.0 Database files.

You can use the Microsoft Web Platform Installer to load VS Tools for SQL CE 4 however.

source: http://social.msdn.microsoft.com/Forums/en/sqlce/thread/a9fca12d-6403-47ff-ab6b-fc1db42205c3

WebMatrix should be able to view/edit these database files as well.