原文:SQL 查询某个表被哪些存储过程使用到

.查询某个表被哪些存储过程使用到 : select distinct object name id from syscomments where id in select object id from sys.objects where type P and text like TableName .查找那些过程对该表做了更新操作: select distinct object name id ...

2020-08-17 14:06 0 660 推荐指数:

查看详情

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

--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