Backup SQL Schema Only?

二次信任 提交于 2019-11-26 21:29:04

问题


I need to create a backup of a SQL Server 2005 Database that's only the structure...no records, just the schema. Is there any way to do this?

EDIT: I'm trying to create a backup file to use with old processes, so a script wouldn't work for my purposes, sorry


回答1:


Use a 3 step process:

  1. Generate a script from the working database
  2. Create a new database from that script
  3. Create a backup of the new database



回答2:


Why not just use SQL Management Studio to create a complete script of your database and the objects?




回答3:


Toad for SQL Server does this nicely, if you're considering a commercial product.




回答4:


I make heavy use of this tool:
SQLBalance for MySQL

Unfortunately; its windows only... but works like a charm to move databases around, data or no data, merge or compare.



来源:https://stackoverflow.com/questions/3589/backup-sql-schema-only

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!