sql语句查询包含某些字符的所有存储过程

sql server2005环境
SELECT  object_name(object_id)
FROM sys.sql_modules where definition like '%abc%'
sqlserver 2000环境
select object_name(id) from syscomments
where number=1 and text like '%abc%'

你可能感兴趣的:(T-SQL)