(1) In SQL2000 or above, you may do this:
select *
from syscolumns
where id = object_id('pr_get_sales_data')
(2) In SQL2005 or above, you may do this:
select *
from information_schema.parameters
where specific_name = 'pr_get_sales_data'
select *
from syscolumns
where id = object_id('pr_get_sales_data')
select *
from information_schema.parameters
where specific_name = 'pr_get_sales_data'
SQLEXPR.EXE ADDLOCAL=SQL_Engine INSTANCENAME=testsql /qb