从现有数据库生成SQL DDL和内容的工具 [英] Tools to generate SQL DDL and Content from an existing database

查看:189
本文介绍了从现有数据库生成SQL DDL和内容的工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道价格合理的工具,该工具将创建DDL语句来创建SQL Server数据库 并使用适当的Insert语句来重新创建数据吗?我使用Red Gate工具进行数据库比较(包括内容比较),但是这很接近(我总是可以与空模式进行比较),但是我想知道是否有其他人发现有用的工具可以一步完成。 / p>

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.

推荐答案

您看过 SQL发布向导?它将创建所有数据库元素(表,视图,SP,用户等)所需的所有DDL语句。

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).

如果您使用的是SQL 2008,它将内置在Management Studio中。 有关2008年的更多信息

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

这篇关于从现有数据库生成SQL DDL和内容的工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆