[英]SQL Server Management Studio: Backup and restore database without data
Is there a way to backup and restore a database without the data. 有没有一种方法可以在没有数据的情况下备份和还原数据库。 I just want the tables, scheme, stored procedures, etc. without the data.
我只希望表,方案,存储过程等没有数据。
If I'm not mistaken you can do this: 如果我没记错的话,您可以这样做:
Script Database As
Script Database As
Create to
Create to
file
file
This gives you a script that you can run on a different server to set up the db. 这为您提供了一个脚本,您可以在其他服务器上运行该脚本来设置数据库。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.