SQL Server查詢某個表被哪些存儲過程調用


https://www.cnblogs.com/Sungeek/p/11150119.html

1、也可以使用SQL語句通過系統表來查詢,where type=P是系統表的意思,如下:

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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM