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).
This tutorial should help you. It shows you how to convert .sdf
to .cs
object using SQLMetal.exe
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.
You could use MSDeploy to migrate your database:
http://erikej.blogspot.com/2011/03/migrate-sql-server-compact-database-to.html
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
Maybe a good idea is to try microsoft (free) tool, Sql Server Management Studio : http://www.microsoft.com/download/en/details.aspx?id=7593