MS SQL 2008 - Create a copy of the database without the data

前端 未结 4 738
甜味超标
甜味超标 2021-01-31 08:37

In MS SQL Server 2008 R2, how do I create a new database based on the schema of the old one, but without copying any of the data along with it? I am using SQL Server management

4条回答
  •  甜味超标
    2021-01-31 09:10

    There is a nice script wizard that can help you. You can try it with Right Click on the database from the object explorer -> Tasks -> Generate Scripts. You can choose which objects from the database you want to export.

提交回复
热议问题