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]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 WangoyaCommented:

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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.