摘要:
清空表 truncate table [表名] ?为所有表--删除存储过程DECLARE @STRING VARCHAR(8000)WHILE EXISTS(SELECT NAME FROM SYSOBJECTS WHERE TYPE='P' AND STATUS>=0)BEGINSELECT @STRING='DROP PROCEDURE '+NAME FROM SYSOBJECTS WHERE TYPE = 'P' AND STATUS>=0--SELECT @STRINGEXEC(@STRING)ENDGO--默认值或 DEFA 阅读全文