what system view contains stored procedure text sql
sp_helptext (Transact-SQL) Displays the definition of a user-defined rule, default, unencrypted Transact-SQL stored procedure, user-defined Transact-SQL function, trigger, computed column, CHECK constraint, view, or system object such as a system stored procedure. ||. |-|. |Applies to: SQL Server ( SQL Server 2008 through current version), Azure SQL Database.|.