I prefer to use sys.sql_modules instead where you've nvarchar(max) column storing full definition
select definition from sys.sqlmodules where OBJECTNAME(object_id) = 'your procedure'
And of course you should be using SQL 2005 or above
commented on Feb 2 2010 6:21AM