sp_depends 오브젝트명 이러면 오브젝트에 관련된 모든 오브젝트가 나오는 프로시저로 알고 있는데 이게 모든 오브젝트를 보여주지 않고 있습니다 제가 알기론 sp_depends A 라고 하면 A 테이블이 사용된 모든 트리거 , 프로시저가 나오는것으로 알고 있는데 빠지는 경우가 있는데 왜 그런 것일까요? 현재 버전은 12.5.3 버전 입니다.
sp_depends 프로시저는 "sysdepends" table에서 찾아 dependency를 결정 합니다.
만약 Object의 생성 순서가 바뀌면 ,report되지 않습니다.
1> sp_depends test1
2> go
Things inside the current database that reference the object.
object type
------------ ----------------
dbo.test_prc stored procedure
The specified column (or all columns, if none was specified) in test1 has no
dependencies on other objects, and no other object depends on any columns from
it.
(return status = 0)
1> drop table test1
1> create table test1 ( a int, b int)
Object doesn't reference any object and no objects reference it.