I can get the number of columns in an SQL Server database with this:
SELECT COUNT(*) FROM INFORMATION_SCHEMA.COLUMNS WHERE table_name = \'Address\'
You could use these functions:
sp_help TableName sp_helptext ProcedureName