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

Can anyone help regarding stored procedure

Status
Not open for further replies.

adasoft

Programmer
Jan 31, 2002
132
IN
Hi,

I am having one stored procedure named SP1 which is having one input and one output parameter. I have write another stored procedure named SP2 which is creating a dynamic SQL statement like

@variable = 'exec ' + @CURR_PROC_NAME + ' '''+ @STR_Var_VARCHAR + ''' , @STR_RETURN_STRING OUTPUT

and later printing and executing this like

print @STR_EXECUTE_QRY

EXEC (@STR_EXECUTE_QRY)

I have declared all three variables in the SP2

but it always says to declare @STR_RETURN_STRING variable. Can I do like above? If yes then how? If no then why?

With thanx in advance,
Adasoft
 
Hi SQLDenis,

Thanx a lot for the responce. Your link is useful enough for me.

With regards,
Rajendra
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top