sys.sysdepends (Transact-SQL)

Applies to: SQL Server

Contains dependency information between objects (views, procedures, and triggers) in the database, and the objects (tables, views, and procedures) that are contained in their definition.

Important

This SQL Server 2000 system table is included as a view for backward compatibility. We recommend that you use the current SQL Server system views instead. To find the equivalent system view or views, see Mapping System Tables to System Views (Transact-SQL). This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

Column name Data type Description
id int Object ID.
depid int Dependent object ID.
number smallint Procedure number.
depnumber smallint Dependent procedure number.
status smallint Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.
deptype tinyint Identifies the dependent object type:

0 = Object or column (non-schema-bound references only

1 = Object or column (schema-bound references)
depdbid smallint Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.
depsiteid smallint Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.
selall bit 1 = Object is used in a SELECT * statement.

0 = No.
resultobj bit 1 = Object is being updated.

0 = No.
readobj bit 1 = The object is being read.

0 = No.

See Also

Mapping System Tables to System Views (Transact-SQL)
Compatibility Views (Transact-SQL)
sp_depends (Transact-SQL)
sys.sql_dependencies (Transact-SQL)