Converting SQL Server database to local C# database

时光怂恿深爱的人放手 提交于 2019-12-22 08:41:24

问题


I have created program that uses SQL Server database to store data. After a while (and lots of stored data) I have realized I don't need database on the server, local database running without server could do the job.

Now I need some advice how to export, convert or whatever, SQL Server database to local (sdf) database? I'm using VS 2010 and SQL Server 2008, I also have SQL Server Management Studio.


回答1:


Check out the SQL Server to SQL Server Compact Edition Copy Tool available on CodeProject in C# source code:

Should do just what you need: copy data from SQL Server to a SQL Server Compact Edition .sdf file.




回答2:


Use the Export database tool? If you are using MS Windows OS then you can access is through the JET interface.




回答3:


Use my Export2sqlce.exe command line utility: http://erikej.blogspot.com/2010/02/how-to-use-exportsqlce-to-migrate-from.html



来源:https://stackoverflow.com/questions/7555006/converting-sql-server-database-to-local-c-sharp-database

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