Here's a quick one. Copy the result into the query window and execute it. But make sure you go
through it first so you don't drop anything vital.
SELECT 'DROP PROC "' + name + '"' + CHAR(13) + CHAR(10) + 'GO'
FROM sysobjects WHERE xtype = 'P'
--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp http://www.solidqualitylearning.com/ [quoted text, click to view] "Marius Ropotica" <MariusRopotic@discussions.microsoft.com> wrote in message
news:E773E4C0-16FF-4110-8BBF-82834850E1C9@microsoft.com...
> Hi,
>
> I want to delete all the stored procedures from a database, but not the
> system procs. How can I do this?
>
> SELECT * FROM sysobjects WHERE xtype = 'P' gives all the stored procedures.
>
> Thanks,
>
> Marius Ropotica