Better Tools For SQL Server Compact
Saturday January 16th 2010
I’ve been doing quite a lot of Windows Mobile development lately coupled with SQL Server Compact 3.5 and the thing that struck me pretty quickly was how shabby the actual Microsoft tools for the job are.
Whilst you can open an SDF database in Management Studio, you can’t edit the data, or script it or do anything useful really. Using Visual Studio is a little better, as you can at least edit the data, but annoyingly despite telling VS to remember the database password, it never does.
One of the most infuriating things that I came across recently is the fact that you can’t change the order or the names of the columns once you have created them. So if you get something wrong, you have to delete the column and add it again. Shabby.
So after a bit of searching around I came across a whole range of tools devoted to working with SQL Compact databases. Most of them do a fair job, but the best one by far in my opinion is ExportSqlCe.
ExportSqlCe is an add-in for Management Studio 2008, which allows you to script out the schema and data from an SDF as well as viewing and editing the tables. Put simply this is what Management Studio should have been able to do from the off. The best bit about it is that it’s free and open source.
So if you work with SDF files, head over to CodePlex and grab yourself a copy.
