简体   繁体   中英

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.

  1. How to backup the database?
  2. How to restore it in SSMS?

If I'm not mistaken you can do this:

  1. Right click the database
  2. Select Script Database As
  3. Select Create to
  4. Select file

This gives you a script that you can run on a different server to set up the db.

Update:

You probably need to follow the steps here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM