码迷,mamicode.com
首页 > 其他好文 > 详细

查找表存在于那些proc中

时间:2017-10-19 10:35:04      阅读:140      评论:0      收藏:0      [点我收藏+]

标签:name   where   and   nbsp   com   表名   右键   ble   type   

方法一:

select distinct object_name(id) from syscomments where id in
(select object_id from sys.objects where type =‘P‘) and text like‘%TableName%‘

方法二:

表名--》右键--》依赖关系

 

查找表存在于那些proc中

标签:name   where   and   nbsp   com   表名   右键   ble   type   

原文地址:http://www.cnblogs.com/ghelement/p/7690855.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!