Hello,i have a stored procedure sp1,having structure like this
create procedure sp1
@id int,
@name varchar(5),
@rank int output
And i have one more stored procedure like this
create procedure sp2
@user varchar(50)
In this sp2 procedure i need to call sp1 like:
exec sp2(select id,name,rank from tbltemp where name!=null)
But it is throwing error like
<br />
<br />
Procedure or function 'sp2' expects parameter '@rank', which was not supplied.
Thanks for any help in advance.