• <small id='p6CYS'></small><noframes id='p6CYS'>

      <bdo id='p6CYS'></bdo><ul id='p6CYS'></ul>
  • <legend id='p6CYS'><style id='p6CYS'><dir id='p6CYS'><q id='p6CYS'></q></dir></style></legend>

    <i id='p6CYS'><tr id='p6CYS'><dt id='p6CYS'><q id='p6CYS'><span id='p6CYS'><b id='p6CYS'><form id='p6CYS'><ins id='p6CYS'></ins><ul id='p6CYS'></ul><sub id='p6CYS'></sub></form><legend id='p6CYS'></legend><bdo id='p6CYS'><pre id='p6CYS'><center id='p6CYS'></center></pre></bdo></b><th id='p6CYS'></th></span></q></dt></tr></i><div id='p6CYS'><tfoot id='p6CYS'></tfoot><dl id='p6CYS'><fieldset id='p6CYS'></fieldset></dl></div>

    1. <tfoot id='p6CYS'></tfoot>

      1. 使用 SQL Server Server Management Studio 导入/导出数据库

        Import / Export database with SQL Server Server Management Studio(使用 SQL Server Server Management Studio 导入/导出数据库)

                <bdo id='sYo2l'></bdo><ul id='sYo2l'></ul>

                  <legend id='sYo2l'><style id='sYo2l'><dir id='sYo2l'><q id='sYo2l'></q></dir></style></legend>
                    <tbody id='sYo2l'></tbody>

                  <small id='sYo2l'></small><noframes id='sYo2l'>

                • <i id='sYo2l'><tr id='sYo2l'><dt id='sYo2l'><q id='sYo2l'><span id='sYo2l'><b id='sYo2l'><form id='sYo2l'><ins id='sYo2l'></ins><ul id='sYo2l'></ul><sub id='sYo2l'></sub></form><legend id='sYo2l'></legend><bdo id='sYo2l'><pre id='sYo2l'><center id='sYo2l'></center></pre></bdo></b><th id='sYo2l'></th></span></q></dt></tr></i><div id='sYo2l'><tfoot id='sYo2l'></tfoot><dl id='sYo2l'><fieldset id='sYo2l'></fieldset></dl></div>

                • <tfoot id='sYo2l'></tfoot>
                  本文介绍了使用 SQL Server Server Management Studio 导入/导出数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我认为这很简单,但事实并非如此...我确定有一种简单的方法可以做到,但我无法找到它.为我感到羞耻.

                  我想导入/导出数据库本身、表、约束(外键等).我宁愿不拿数据,但如果没有其他办法,我可以摆脱它.

                  I want to import/export the database itself, the tables, the constraints (foreign keys and so on). I'd rather not get the data with it, but I can get rid of it after if there's no other way.

                  那么……您如何使用 MS SQL Server Management Studio 导出数据库?你如何导入它?

                  So... how do you export a database using MS SQL Server Management Studio ? How do you import it?

                  我找到的唯一解决方案是右键单击表格并创建脚本",但我有大约 100 个表格,所以我宁愿避免这种情况.

                  The only solution I found was right click on the tables and "script to Create", but I have something like 100 tables, so I'd rather avoid this.

                  谢谢!

                  推荐答案

                  右键单击数据库本身,Tasks -> Generate Scripts...

                  Right click the database itself, Tasks -> Generate Scripts...

                  然后按照向导操作.

                  对于 SSMS2008+,如果您还想导出数据,请在设置脚本选项"步骤中,选择高级"按钮并将脚本的数据类型"从仅架构"更改为仅数据"或架构和数据".

                  For SSMS2008+, if you want to also export the data, on the "Set Scripting Options" step, select the "Advanced" button and change "Types of data to script" from "Schema Only" to "Data Only" or "Schema and Data".

                  这篇关于使用 SQL Server Server Management Studio 导入/导出数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  How do I split flat file data and load into parent-child tables in database?(如何拆分平面文件数据并加载到数据库中的父子表中?)
                  How to import CSV into sqlite using RSqlite?(如何使用 RSqlite 将 CSV 导入 sqlite?)
                  Import CSV to Update rows in table(导入 CSV 以更新表中的行)
                  Importing MaxMind#39;s GeoLite2 to MySQL(将 MaxMind 的 GeoLite2 导入 MySQL)
                  How do you import a large MS SQL .sql file?(如何导入大型 MS SQL .sql 文件?)
                  SQL variable to hold list of integers(用于保存整数列表的 SQL 变量)
                  <legend id='yk4VX'><style id='yk4VX'><dir id='yk4VX'><q id='yk4VX'></q></dir></style></legend>

                  • <bdo id='yk4VX'></bdo><ul id='yk4VX'></ul>
                        <tbody id='yk4VX'></tbody>

                    1. <tfoot id='yk4VX'></tfoot>

                          <i id='yk4VX'><tr id='yk4VX'><dt id='yk4VX'><q id='yk4VX'><span id='yk4VX'><b id='yk4VX'><form id='yk4VX'><ins id='yk4VX'></ins><ul id='yk4VX'></ul><sub id='yk4VX'></sub></form><legend id='yk4VX'></legend><bdo id='yk4VX'><pre id='yk4VX'><center id='yk4VX'></center></pre></bdo></b><th id='yk4VX'></th></span></q></dt></tr></i><div id='yk4VX'><tfoot id='yk4VX'></tfoot><dl id='yk4VX'><fieldset id='yk4VX'></fieldset></dl></div>

                          <small id='yk4VX'></small><noframes id='yk4VX'>