没有数据的重复数据库 [英] duplicate database without data

查看:70
本文介绍了没有数据的重复数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不使用数据的情况下创建具有与现有数据库相同结构的新数据库

how can i create new database with same structure of existing database without data

推荐答案

您可以导出创建表,索引等所需的SQL,并且使用它来创建一个新实例.如果我没记错SQL 2005,则右键单击数据库名称,然后选择 Tasks>生成脚本.出现一个向导,它将指导您完成这些步骤.
You can export the SQL needed to create the tables, indexes, etc, and use this to create a new instance. If I remember SQL 2005 rightly, you right click on the database name and select Tasks > Generate Scripts. A wizard appears that will guide you through the steps.


您可以导出创建表,索引等所需的SQL,并使用它来创建新实例.您右键单击数据库名称,然后选择任务>生成脚本.出现一个向导,它将指导您完成这些步骤.

在显示该窗口的窗口中,您将获得高级"按钮进入设置脚本选项"步骤,在其中您可以设置所有属性,例如FK,indexes,triggers.


TRY ----
You can export the SQL needed to create the tables, indexes, etc, and use this to create a new instance. You right click on the database name and select Tasks > Generate Scripts. A wizard appears that will guide you through the steps.

You will get Advance button into the step of Set Scripting Options on that window appears in which you set all the property like FK,indexes , triggers.


TRY----


这篇关于没有数据的重复数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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