查找表名是否存在于某个函数或者视图中

版权声明:本文为博主原创文章,转载时请注明出处。 https://blog.csdn.net/nxw_tsp/article/details/84314960

查找表名是否存在于某个函数或者视图中:

select distinct object_name(id) from syscomments
where id in (select id from sysobjects where type in('V','P'))
and text like '%表名%'

猜你喜欢

转载自blog.csdn.net/nxw_tsp/article/details/84314960