从现有数据库生成 SQL DDL 和内容的工具

发布于 2024-07-12 02:57:09 字数 162 浏览 6 评论 0 原文

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

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

烂人 2024-07-19 02:57:09

迟到的答案...希望有人会发现它有用...

Red Gate 有一个名为 SQL Multi Script 的工具,可以根据您的需要编写脚本。 不确定在提出问题时它是否存在:)

另一个好东西是 来自 ApexSQL 的 SQL 构建工具 它还可以执行所有类型的插入和其他脚本...

免责声明:我不隶属于上述任何公司。

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.

输什么也不输骨气 2024-07-19 02:57:09

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

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

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.

千と千尋 2024-07-19 02:57:09

SQL 发布向导

看到 Austin Solonen 在某个相关的线程中发布了此工具。 Express 版本似乎没有导入和导出功能。

SQL Publishing Wizard

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

海螺姑娘 2024-07-19 02:57:09

数据库发布向导执行此功能。

它也可以通过 CodePlex 作为 Visual Studio 早期版本的附加组件提供。

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文