sys.syscomments

compatibility
#compatibility#catalog-view

Description

Contains entries for each view, rule, default, trigger, CHECK constraint, DEFAULT constraint, and stored procedure within the database. The column contains the original SQL definition Object ID to which this text applies. Number within procedure grouping, if grouped. 0 = Entries are not procedures. Row sequence number for object definitions that are longer than 4,000 Identified for informational purposes only. Not supported. Future