1.查詢某個表被哪些存儲過程(以下簡稱 SP)使用到 : select distinct object_name(id) from syscomments where id in (select object_id from sys.objects where type ='P ...
.查詢某個表被哪些存儲過程 以下簡稱 SP 使用 : select distinct object name id fromsyscomments where id in select object id from sys.objects where type P and text like TableName .查找那些過程對該表做了更新操作: select distinct object n ...
2019-12-05 11:08 0 401 推薦指數:
1.查詢某個表被哪些存儲過程(以下簡稱 SP)使用到 : select distinct object_name(id) from syscomments where id in (select object_id from sys.objects where type ='P ...
1.查詢某個表被哪些存儲過程(以下簡稱 SP)使用到 : select distinct object_name(id) from syscomments where id in (select object_id from sys.objects where type ='P ...
1.查詢某個表被哪些存儲過程(以下簡稱 SP)使用 : select distinct object_name(id) fromsyscomments where id in (select object_id from sys.objects where type='P ...
--1.查詢某個表被哪些存儲過程使用到 : select distinct object_name(id) from syscomments where id in ( select object_id from sys.objects ...
select distinct object_name(id) from syscomments where id in (select id from sysobjects where t ...
工作中偶爾會出現:想用A數據表替換B數據表,然后把B數據表刪除。但是,又不知道B數據表在哪個視圖、存儲過程、函數、觸發器中使用過? 經過一番度娘,看到實現方法也不難,主要涉及兩個系統表:sysobjects及syscomments。 1、先來復習一下sysobjects ...
--sql2008 查詢某個表被那些存儲過程用到select distinct object_name(id) from syscommentswhere id in (select object_id from sys.objects where type ='P')and UPPER ...
store procedure (存儲過程) http://www.cnblogs.com/xiangzhong/p/5038338.html 調優的幾個關鍵的步驟--sp_lock,sp_who http://blog.csdn.net/yenange/article ...