檢視和儲存過程相關物件

jss001發表於2009-02-22

ORACLE:
SELECT * FROM USER_DEPENDENCIES WHERE NAME='P_CHECK_SITE' AND REFERENCED_TYPE='TABLE'

SQLSERVER:
select name from sysobjects where id in(select distinct bb.depid as kk
from sysobjects
join sysdepends bb on bb.id = sysobjects.id
where sysobjects.name='儲存過程名')

[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/18921899/viewspace-1017720/,如需轉載,請註明出處,否則將追究法律責任。

相關文章