jcvandan
jcvandan

Reputation: 14314

Scripting / backing up a SqlServerCE db to management studio

I have been developing a site using entity framework and sql server compact edition that is no wready to be deployed. SqlCE along with EF code first has been great - it has dramatically reduced my development time.

However, I am hosting the site with an external hosting company, and due to potential issues with file access and reliability - I now wish to script the database and copy it to an instance of sql server management studio that I get included with my hosting.

Anyone got any ideas?

p.s. I am using Sql Server Management Studio 2008 R2 and Sql Server CE 4

Upvotes: 0

Views: 521

Answers (2)

Ladislav Mrnka
Ladislav Mrnka

Reputation: 364279

Sql Server Management studio doesn't support Sql Server CE 4. The only support is in Visual Studio 2010 SP1 (I'm not sure if you need SQL Ce 4 Tools as well). I guess you can try very new EF Power Tools CTP1 which offers View Entity Data Model DDL SQL - it should be exactly what you need.

Upvotes: 1

ErikEJ
ErikEJ

Reputation: 41769

You can use my tools to create a script that you can run against your SQL Server Database. SSMS 2008 R2 only supports SQL Server Compact version 3.5. You can use the 4.0 version command line tools from here: http://exportsqlce.codeplex.com or my Visual Studio add-in: http://sqlcetoolbox.codeplex.com

Upvotes: 2

Related Questions