【SQL】数据库对象中查找某一关键字

数据库对象中查找某一关键字

select a.text,b.name,b.xtype from dbo.syscomments a,dbo.sysobjects b 
   
where a.id=b.id and PATINDEX('%tb_blackname%', a.text)>0 order by xtype

 

posted on 2009-07-16 15:56  Jeffrey_Wang  阅读(326)  评论(0编辑  收藏  举报