14

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.

willem
  • 25,977
  • 22
  • 75
  • 115

5 Answers5

19

Have you tried the SQL Server Compact Toolbox?

or the SQL Compact Query Analyzer?

Prahalad Gaggar
  • 11,389
  • 16
  • 53
  • 71
  • I was not able to use SQL Server Compact Toolbox at all, waited for 5 mins and gave up. But SQL Compact Query Analyzer is really snappy. 3 MB download, requires an install but really snappy and works – user_v Jan 23 '12 at 09:29
  • 1
    I published a new drop of SQL Compact Query Analyzer a few days ago :) – Christian Resma Helle Feb 02 '12 at 10:03
4

Here are a couple which have worked quite well for me in terms of connecting to SQL CE 3.5 and 4.0 databases:

LINQPad - (See my remark to question) It works quite well plus it allows for specifying LINQ or SQL for queries.

CompactView - Seems pretty full featured + install creates a nice Windows file association so one can simply double-click to open/connect to .sdf files for instance.

blins
  • 2,515
  • 21
  • 32
4

You can download sql ce through web api just follow this link

visual-studio-tools-for-sql-serverl

to do that.

Prahalad Gaggar
  • 11,389
  • 16
  • 53
  • 71
Crimsonland
  • 2,194
  • 3
  • 24
  • 42
0

All of the other options require SQL CE 4.0 Database Provider installed on your machine.

This one doesn't need provider http://sqlcequery.codeplex.com/

friend
  • 1,909
  • 2
  • 21
  • 28
0

If you are using Visual Studio 2015, 2013, 2012, 2010, try SqlCeToolbox.4.5.0.3.vsix. It is SQL Server Compact/SQLite Toolbox for Visual Studio.

The link: http://www.sokhawin.com/how-to-open-sql-compact-edition-file-sdf-in-visual-studio-or-linqpad/

It has ability to open and edit.

Haryono
  • 2,184
  • 1
  • 21
  • 14