extract schema for sql server compact edition

China☆狼群 提交于 2019-12-07 01:55:17

问题


Is there a way to generate the sql statement for tables in sql server compact ? same as for sql server express+ ?

Essentially a create table( .... ) statement as output ?


回答1:


There is a project on Codeplex that someone has actually built the functionality to be able to do scripting for sql server compact edition databases.




回答2:


There is a tool to do this. Check out http://www.antipodeansoftware.com/Home/Products This will iterate the entire SQL server, and write all the table, view, stored procedure and UDF scripts to a local drive. Great for adding SQL schema or DDL to source control.




回答3:


The plugin SQLite & SQL Server Compact Toolbox has versions for Visual Studio and SQL Server Management Studio. I've used the latter version successfully to add columns and export the schema as CREATE TABLE statements from SQL Server Compact Edition 3.5.




回答4:


You can connect to SQL Server Compact Edition using SQL Server Management Studio(SSMS), which in turn allows you to script out all database objects.

Please refer to: Managing SQL Server Compact Edition with SQL Server Management Studio

and then also, How to: Generate a Script



来源:https://stackoverflow.com/questions/1072357/extract-schema-for-sql-server-compact-edition

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