Here is what I use. Mine searches for specific naming conventions.It was written for SQL Server 2000, but I believe it works in 2005 too.USE YourDatabaseGOSET NOCOUNT ONDECLARE @objName varchar(80)DECLARE @objType char(2)DECLARE grant_perms_on_sps CURSOR FOR SELECT name, typeFROM SYSOBJECTS WHERE ( (type = 'P' AND (name LIKE 'usp[_]%' OR name like 'isp[_]%')) OR (type = 'FN' AND name LIKE 'udf[_]%') OR (type = 'TF' AND name LIKE 'udf[_]%') OR (type = 'U') OR (type = 'V' AND name LIKE 'v[_]%') OR (type = 'TR') ) AND uid = 1 AND status > -1OPEN grant_perms_on_spsFETCH NEXT FROM grant_perms_on_sps INTO @objName, @objTypeWHILE @@FETCH_STATUS = 0BEGIN IF @objType IN ('TF', 'FN') EXEC ('DROP FUNCTION dbo.' + @objName) IF @objType = 'P' EXEC ('DROP PROC dbo.' + @objName) IF @objType = 'V' EXEC ('DROP VIEW dbo.' + @objName) IF @objType = 'TR' EXEC ('DROP TRIGGER dbo.' + @objName) FETCH NEXT FROM grant_perms_on_sps INTO @objName, @objTypeENDCLOSE grant_perms_on_spsDEALLOCATE grant_perms_on_spsGOTara Kizerhttp://weblogs.sqlteam.com/tarad/