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 from syscomments where id in select object id from sys.objects where type P and text like TableName .查找那些過程對該表做了更新操作: select distinct object ...
2012-10-22 15:44 0 10463 推薦指數:
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.查詢某個表被哪些存儲過程(以下簡稱 SP)使用 : select distinct object_name(id) fromsyscomments where id in (select object_id from sys.objects where type='P ...
工作中偶爾會出現:想用A數據表替換B數據表,然后把B數據表刪除。但是,又不知道B數據表在哪個視圖、存儲過程、函數、觸發器中使用過? 經過一番度娘,看到實現方法也不難,主要涉及兩個系統表:sysobjects及syscomments。 1、先來復習一下sysobjects ...
--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 ...
--sql2008 查詢某個表被那些存儲過程用到select distinct object_name(id) from syscommentswhere id in (select object_id from sys.objects where type ='P')and UPPER ...
問題描述: 今天有個同事問到如何查詢某個表被哪些存儲過程調用, 然后同事說可以用SQL search查詢,自己試了一下確實可以 sqlsearch下載說明地址:https://www.cnblogs.com/chuankang/p/8722369.html 方法一: 直接輸入框寫表名 ...