原文:查詢某張表被哪些存儲過程或者視圖用到的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-2026 CODEPRJ.COM