--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 type in V , P and text like tablename 其中sysobjects 中的type V View P Proc ...
2014-05-05 21:47 0 3991 推薦指數:
--1.查詢某個表被哪些存儲過程使用到 : select distinct object_name(id) from syscomments where id in ( select object_id from sys.objects ...
--sql2008 查詢某個表被那些存儲過程用到select distinct object_name(id) from syscommentswhere id in (select object_id from sys.objects where type ='P')and UPPER ...
--查詢某個表被哪些視圖/存儲過程使用(type='P':表示存儲過程,type='V':表示視圖)SELECT OBJECT_NAME(id) FROM syscomments WHERE id IN(SELECT object_id FROM sys.objects WHERE type='P ...
1. 查看用戶表 其中type或xtype值:U = 用戶表 S = 系統表 V = 視圖 FN = 標量函數 TF = 表函數 P = 存儲過程 TR = 觸發器 D = 默認值或 DEFAULT 約束 PK = PRIMARY KEY ...
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 ...
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 ...