Environment is SQL Server 2005
Is there a way to use named parameters when getting the output parameters of a stored procedure? Currently, my knowledge of output parameters is very limited. It looks like I should use them in the order of their declaration in the stored procedure. that is, if I did exec test @rich output,@bob output , the call would explode. How can I manage the order? thank you
create procedure test @ID as INT output ,@mark as char(20) output as select @ID = 5,@mark='test' go declare @bob as int declare @rich as char(20) exec test @bob output, @rich output select @bob,@rich
source share