Script to find out Stored procedures/functions that doesn't have extended properties defined
-
Monday, June 11, 2012 5:48 PM
Hello All,
I am trying to write a script to find out what all stored procedures/functions in a dev server that doesn't have extended properties defined. Please help me how to do it.
Thank You
All Replies
-
Monday, June 11, 2012 5:55 PM
Tables:
select t.* from sys.tables t left join sys.extended_properties p on p.major_id = t.object_id AND class = 1 WHERE p.name IS NULL
Chuck Pedretti | Magenic – North Region | magenic.com
-
Monday, June 11, 2012 5:57 PM
Procs/functions
select so.name, t.* from syscomments t join sysobjects so on t.id = so.id left join sys.extended_properties p on p.major_id = t.id
WHERE p.name IS NULL
Chuck Pedretti | Magenic – North Region | magenic.com
- Edited by Chuck Pedretti Monday, June 11, 2012 5:58 PM
- Marked As Answer by srisql Monday, June 11, 2012 8:21 PM
-
Monday, June 11, 2012 8:21 PMThanks so much chuck. That worked

