Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get names and values of a paramter of a stored procedure

Status
Not open for further replies.

tirf

Programmer
Sep 22, 2008
59
US
SELECT parm.name AS Parameter,
typ.name AS [Type]
FROM sys.procedures sp JOIN sys.parameters parm
ON sp.object_id = parm.object_id
JOIN sys.types typ
ON parm.system_type_id = typ.system_type_id
WHERE sp.name = 'sp_test'


I have written the above query to get the name and datatype of parameters of a stored procedure

Can I get the last values passed to these parameters; so my result set will be

Parameter datatype value
name varchar(100) 'John'
age int 30



Thanks

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top