sqlserver 删除表 视图 函数 存储过程

use tax_ceshi
select 'DROP TABLE '+name from sysobjects where type = 'U'
union
select 'DROP VIEW '+name from sysobjects where type = 'V'
union
select 'DROP PROC '+name from sysobjects where type = 'P'
union
select 'drop function '+name from sysobjects where type = 'tf'
union
select 'drop function '+name from sysobjects where type = 'fn'

posted @   恋之呓  阅读(391)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示