sys.sysdepends (Transact-SQL)
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.
![]() |
---|
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 SQL Server 2000 System Tables to SQL Server 2005 System Views. 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. |
Mapping System Tables to System Views (Transact-SQL)