查询sqlserver数据库视图、存储过程等包含特定的字符串

时间:2014-05-22 05:39:16   收藏:0   阅读:284
1
2
3
4
5
6
SELECT  A.name ,
        B.definition
FROM    SYS.objects A
        INNER JOIN sys.sql_modules B ON A.object_id = B.object_id
                                        AND ( CHARINDEX(‘包含字符‘,
                                                        B.definition) > 0 )

 

查询sqlserver数据库视图、存储过程等包含特定的字符串,布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!