Check out my blog for files and database objects. http://craftydba.com/?p=2901
I have a stored procedure called SP_STORE_PRIMES in my database [MATH].
One way is to use the sys.parameters table. This may optionally be attached to types. Below joins sys.objects.
-- Parameters to SP & FN select o.name, p.* from sys.parameters p join sys.objects o on p.object_id = o.object_id where is_ms_shipped = 0 go

An older system stored procedure is sp_sproc_columns.
-- Older system stored proc - show all parameters to one sp_sproc_columns @procedure_name = 'SP_STORE_PRIMES' go
Both ways will help you get where you want to go.

source share