query only user procs in sql 2000

how can you filter for user created procs in sql 2000?
LVL 6
anushahannaAsked:
Who is Participating?
 
Guy Hengel [angelIII / a3]Connect With a Mentor Billing EngineerCommented:
your query brings duplicates, because when a stored procedure is, when longer, "split" into several rows in syscomments... and if several part are matching ...

apart from that, there is no "system" stored procedure flag, so you cannot "filter" for such things.

select name 
from syscomments a,sysobjects b where a.id = b.id and xtype = 'p' and text like '%something%'
group by name

Open in new window

0
 
anushahannaAuthor Commented:
the query i have is

select name from syscomments a,sysobjects b where a.id = b.id and xtype = 'p' and text like '%something%'
and it brings a lot of records, more than what we created (duplicates too)
0
 
Ephraim WangoyaConnect With a Mentor Commented:

this is much cleaner

select ROUTINE_NAME
from INFORMATION_SCHEMA.ROUTINES
WHERE ROUTINE_NAME LIKE '%something%
0
 
anushahannaAuthor Commented:
most procs will be more than 4000 char- so i thought of using syscomments..
0
 
anushahannaAuthor Commented:
thanks for confirming.
0
All Courses

From novice to tech pro — start learning today.