You can get the "code" (the T-SQL definition) for your stored procedures from SQL Server by inspecting the sys.procedures and sys.sql_modules catalog views:
SELECT
[pr].[name] ,
[pr].[object_id] ,
[pr].[type_desc] ,
[pr].[create_date] ,
[pr].[modify_date] ,
[m].[definition] ,
[m].[uses_ansi_nulls] ,
[m].[uses_quoted_identifier] ,
[m].[is_schema_bound]
FROM sys.[procedures] pr
INNER JOIN sys.[sql_modules] m ON [pr].[object_id] = [m].[object_id]
WHERE pr.Name = 'whatever_stored_proc_name_you_want_to_analyze'
Same goes for views:
SELECT
v.[name] ,
v.[object_id] ,
v.[type_desc] ,
v.[create_date] ,
v.[modify_date] ,
[m].[definition] ,
[m].[uses_ansi_nulls] ,
[m].[uses_quoted_identifier] ,
[m].[is_schema_bound]
FROM sys.views v
INNER JOIN sys.[sql_modules] m ON v.[object_id] = [m].[object_id]
WHERE v.Name = 'whatever_view_you_want_to_analyze'