如何从附加到 SQL Server Management Studio 的 mdf 文件中提取 sql 转储?

发布于 2024-12-21 06:36:01 字数 113 浏览 2 评论 0原文

我确实需要提取完整的 sql 转储,并重新创建表并从 mdf 文件中插入所有数据。对此的任何帮助都将受到高度赞赏。

我已经尝试下载 mssql 发布向导,但我不知道在哪里可以找到它以及如何使用它。

I really need to extract full sql dump with tables recreate and all data inserts from my mdf file. Any help on this will be highly apreciated.

I already tried to download mssql publishing wizard but I have no idea where to find it and how to use it.

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

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

发布评论

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

评论(1

っ左 2024-12-28 06:36:01

在 SQL Server Management Studio 中,您可以右键单击您的数据库并选择:

Tasks -> Generate Scripts

这将允许您选择您希望导入其他数据库的表、sp 等。

只需按照向导进行操作即可。 当提示选择脚本选项时,请确保将“脚本数据”设置为 TRUE。生成脚本后,在第二个数据库上执行该脚本。

在此处输入图像描述

在此输入图像描述

From the SQL Server Management Studio you can right click on your database and select:

Tasks -> Generate Scripts

This will allow to select what tables, sp, etc you wish to take to the other database.

Simply proceed through the wizard. Make sure to set 'Script Data' to TRUE when prompted to choose the script options. Once the script is generated execute the script on the second database.

enter image description here

enter image description here

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