原文: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