Script to delete all non-system objects in SQL Server 2008

前端 未结 2 1973
南方客
南方客 2021-02-14 15:26

Does anyone have a script that will delete all non-system tables/procs/views from a database?

I created some views, procs and tables which I need to clean up and doing t

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-14 15:49

    Wouldn't it be easier to drop/recreate the database?

    DROP DATABASE yourdbname
    CREATE DATABASE yourdbname
    

提交回复
热议问题