原文:查询某张表被哪些存储过程或者视图用到的sql语句

select distinct object name id from syscomments where id in select id from sysobjects where type in V , P and text like tablename 其中sysobjects 中的type V View P Proc ...

2014-05-05 21:47 0 3991 推荐指数:

查看详情

查询某个被那些存储过程用到

--sql2008 查询某个被那些存储过程用到select distinct object_name(id) from syscommentswhere id in (select object_id from sys.objects where type ='P')and UPPER ...

Sat May 11 23:57:00 CST 2019 0 989
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM