Search notes:

SQL Server: sp_helptext

sp_helptext shows the definitions of some objects:
Display the code of sp_helptext itself:
exec sp_helptext 'sp_helptext'

See also

Of course, sp_helptext also shows the definition of itself: sp_helptext 'sp_helptext'
sp_help
Showing object definitions

Index