您的位置:首页 > 数据库

查某个数据库中所有包含某个关键词的用户存储过程 或 用户视图

2013-02-21 16:07 405 查看
use EDW_PreSource

select a.name,a.[type],b.[definition]
from sys.all_objects a,sys.sql_modules b
where a.is_ms_shipped=0 and a.object_id = b.object_id
and a.[type] in ('P','V','AF')
and b.[definition] like '%your keywords%' -- db fields,dbName etc
order by a.[name] asc


内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐