2013年9月5日

摘要: DECLARE @procName VARCHAR(500) DECLARE cur CURSOR FOR SELECT [name] FROM sys.objects WHERE type = 'p' OPEN cur FETCH next FROM cur INTO @procName WHILE @@fetch_status = 0 BEGIN EXEC('drop procedure ' + @procName) FETCH next FROM cur INTO @procName END CLOSE cur DEALLOCATE cur 阅读全文
posted @ 2013-09-05 14:27 晴.天 阅读(280) 评论(0) 推荐(0) 编辑

导航