Moving data from SQL Compact to SQL Server 2008

╄→гoц情女王★ 提交于 2019-12-23 03:28:10

问题


I have created an .SDF file and inserted data into the SDF database file on a mobile device. I want to transform .SDF file to a SQL Server 2008 Database File but don't know how. Any pointers or suggestions would be appreciated.


回答1:


You cannot directly convert a SQL Compact database into a full SQL Server 2008 database, as they are structured completely different. And as far as I know you cannot use SSIS (SQL Server Integration Services) to copy data from the SQL Compact database to a SQL Server database (the other way round would be possible).

So the only real option seems to write some app that reads the data from the SQL Compact database and then inserts it into the SQL Server.




回答2:


You can use http://exportsqlce.codeplex.com to script the database and run the script against a SQL Server database.



来源:https://stackoverflow.com/questions/2229572/moving-data-from-sql-compact-to-sql-server-2008

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!