sys.sysdepends (Transact-SQL)

sys.sysdepends (Transact-SQL)

 

THIS TOPIC APPLIES TO:yesSQL Server (starting with 2008)noAzure SQL DatabasenoAzure SQL Data Warehouse noParallel Data Warehouse

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.

System_CAPS_ICON_important.jpg 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.

Applies to: SQL Server (SQL Server 2008 through current version).
Column nameData typeDescription
idintObject ID.
depidintDependent object ID.
numbersmallintProcedure number.
depnumbersmallintDependent procedure number.
statussmallintIdentified for informational purposes only. Not supported. Future compatibility is not guaranteed.
deptypetinyintIdentifies the dependent object type:

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

1 = Object or column (schema-bound references)
depdbidsmallintIdentified for informational purposes only. Not supported. Future compatibility is not guaranteed.
depsiteidsmallintIdentified for informational purposes only. Not supported. Future compatibility is not guaranteed.
selallbit1 = Object is used in a SELECT * statement.

0 = No.
resultobjbit1 = Object is being updated.

0 = No.
readobjbit1 = The object is being read.

0 = No.

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

Community Additions

ADD
Show:
© 2016 Microsoft