问题
I have this SQL Server CE database (with more tables and data) which I would like to convert to SQL 2008 because I want use it in Server (application need to used by many). I am using SQL 2008 express and C#.
Please suggest how I can do this.
回答1:
Maybe a good idea is to try microsoft (free) tool, Sql Server Management Studio : http://www.microsoft.com/download/en/details.aspx?id=7593
回答2:
Have you tried the Data Migration Wizard?
Anyhow, you might find this interesting: http://exportsqlce.codeplex.com/
Original source:
http://bembengarifin-tech.blogspot.com/2008/08/generate-script-export-data-from-sql-ce.html
回答3:
This tutorial should help you. It shows you how to convert .sdf
to .cs
object using SQLMetal.exe
回答4:
Microsoft WebMatrix uses Compact SQL (.sdf file) by default. In the Database view, if SQL SVR is installed, there is a Migrate to SQL Server top menu item. There is also a menu selection to install SQL Server. Both WebMatrix and (a version of) SQL SVR 2008 are free to install.
回答5:
You could use MSDeploy to migrate your database:
http://erikej.blogspot.com/2011/03/migrate-sql-server-compact-database-to.html
来源:https://stackoverflow.com/questions/9257833/convert-sdf-database-to-mdf-database