Database Diagramming Tools for SQL Server CE 4
Asked Answered
W

3

6

Although there are GUI tools in VS2010 for entering data, writing queries etc against a SQL CE4 db, there doesn't appear to be a way to visualise the database in a digram.

So my Questions are

A) Have i missed something in VS2010 tools for sql Server CE4

b) Can i use SMSS to Diagram SQL CE4 databases. I've tried it but it wouldn't allow open the db. Is there a plugin available?

Thank you.

Whisper answered 7/2, 2011 at 11:20 Comment(0)
F
10

Microsoft does not supply a diagramming tool for SQL Server Compact 4, you could try my VS 2010 add-in http://sqlcetoolbox.codeplex.com (Create Database Graph) or the Data Port Console from http://www.primeworks-mobile.com

Fallfish answered 7/2, 2011 at 11:57 Comment(2)
Brilliant tool! Thanks a lot Erik.Whisper
SqlCeToolbox is now at github.com/ErikEJ/SqlCeToolbox.Permalloy
A
3

Actually, there IS a diagramming tool for SQL CE right into VS, but it's hard to find.

I only tried this in VS 2012 Preview, but it might work in older versions - please speak up in the comments.

Here's how to get to it:

In 'server explorer' create a normal connection to the SQL CE database. (No diagramming options are visible...)

Then right-click a table -> "Show table data"... Wait for it...

Hit Ctrl-1.

TA-DA!!

Alternatively, Right-click in the window with the tabular data and choose "Pane" from the context menu. (I know, 'Pane' !?)

Finally, from the 'Pane' submenu click the obvious choice - "Diagram".

There you have it.

Designer window

Action answered 21/7, 2012 at 13:37 Comment(3)
Sadly, this doesn't allow you to save the relationship as a database diagram. It's single use only.Agler
@Chris Quoting the question: "[...]there doesn't appear to be a way to visualise the database in a digram[sic]". A quick way to vhew the relationships was all I was after when looking after such a tool (to see what kind of db was generated by EF model-first). I think it brings value, r/o as it is.Action
this is close, but for me it generates a lot of incorrect relationships, thinking tables with same-name primary keys have 1-1 relationshipsLugar
G
0

SDF Viewer is now able to create database diagrams for SQLCE databases

Gawen answered 26/1, 2013 at 14:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.