Tools to generate SQL DDL and Content from an existing database

风格不统一 提交于 2019-12-11 08:36:52

问题


Does anyone know of a reasonably priced tool that will create DDL statements to create a SQL Server database and appropriate Insert statements to recreate the data? I use the Red Gate tools to do database compares (including content compares) and this comes close (I could always compare with an empty schema) but I was wondering if there was a tool that others found useful that did this in one step.


回答1:


Have you had a look at SQL Publishing Wizard? It will create all the DDL statements you require for all database elements (tables, views, SPs, users etc).

If you're using SQL 2008, it comes built into the management studio. More info on 2008.




回答2:


Late answer... hopefully someone will find it useful…

There is a tool from Red Gate called SQL Multi Script that can do scripting for what you need. Not sure if it existed when the question was asked though :)

Another good piece is SQL build tool from ApexSQL which can also do all kind of insert and other scripts…

Disclaimer: I’m not affiliated with any of the companies mentioned above.




回答3:


SQL Publishing Wizard

Saw Austin Solonen post this tool in a somewhat related thread. Express editions appearantly don't hove Import and Export.




回答4:


The database publishing wizard that is included in Visual Studio 2008 performs this function.

It is also available via CodePlex as an add-on for prior versions of Visual Studio.



来源:https://stackoverflow.com/questions/422525/tools-to-generate-sql-ddl-and-content-from-an-existing-database

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