Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about Collectives
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed
8 years ago
.
–
Download and install
LINQPad
, it works for SQL Server, MySQL, SQLite and also SDF (SQL CE 4.0).
Steps for open SDF Files:
Click
Add Connection
Select
Build data context automatically
and
Default (LINQ to SQL)
, then
Next
.
Under
Provider
choose
SQL CE 4.0
.
Under
Database
with
Attach database file
selected, choose
Browse
to select your .sdf file.
Click
OK
.
–
–
Try the sql server management studio (version 2008 or earlier) from Microsoft.
Download it from here
. Not sure about the license, but it seems to be free if you download the EXPRESS EDITION.
You might also be able to use later editions of SSMS. For 2016, you will need to
install an extension.
If you have the option you can copy the sdf file to a different machine which you are allowed to pollute with additional software.
Update: comment from Nick Westgate in nice formatting
The steps are not all that intuitive:
Open SQL Server Management Studio, or if it's running select File -> Connect Object Explorer...
In the Connect to Server dialog change Server type to SQL Server Compact Edition
From the Database file dropdown select < Browse for more...>
Open your SDF file.
–
–
–
–
and following the instructions there.
If you're okay with them being upgraded to 4.0, you can open older versions of SQL Compact Databases also - handy if you just want to have a look at some tables, etc for stuff like Windows Phone local database development.
(note I'm not sure if this requires a specific SKU of VS2012, if it helps I'm running Premium)
–
–