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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

call stored procedure with input and output parameter

Status
Not open for further replies.

nisha23

Programmer
Sep 23, 2003
19
US
I have created an extended stored procedure which I want to call from lookup, is it possible and how

I am giving my command like this which is not working
xp_TestVal ?

if I give like constant
xp_TestVal 'abc'

this extended stored procedure is returning one value as varchar(30) and input parameter is also varchar(30)

 
Are you talking about an output parameter?
If so this is how you do it

DECLARE @ThisVar varchar(30)
--@ThatVar is the output parameter in the procedure
EXECUTE xp_TestVal 'abc', @Thatvar = @ThisVar OUTPUT



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top