Home  >  Article  >  Database  >  在SSMS里批量删除表、存储过程等各种对象

在SSMS里批量删除表、存储过程等各种对象

WBOY
WBOYOriginal
2016-06-07 17:43:071228browse

在SSMS里批量删除表、存储过程等各种对象 以前想找批量删除表或者存储过程的方法,原来SSMS的GUI界面也可以完成 请看下图,因为这次出差的时候要删除所有的存储过程,然后重建这些存储过程 而表、函数等对象都可以这样删除,Ctrl+A全选,然后按住Ctrl,不选

在SSMS里批量删除表、存储过程等各种对象

以前想找批量删除表或者存储过程的方法,香港服务器租用,原来SSMS的GUI界面也可以完成

请看下图,因为这次出差的时候要删除所有的存储过程,然后重建这些存储过程

 

而表、函数等对象都可以这样删除,Ctrl+A全选,然后按住Ctrl,不选择系统存储过程,美国空间,右键-》删除

就这样就可以啦o(∩_∩)o

如果要使用TSQL脚本来删除一个数据库里的所有存储过程,美国空间,可以这样做

sys.procedures (4000) name sys.procedures (@sql)

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn