I have created one stored procedure which is output parameters.
create proc sp_withoutputparameter
@Gender nvarchar(50),
@employeecount int output
as
begin
select @employeecount=count(id) from temployee where gender=@Gender
end
declare @Totalcount int
execute sp_withoutputparameter @employeecount=@Totalcount out,@Gender='Female'
print @Totalcount
execute sp_withoutputparameter @employeecount=@Totalcount out,@Gender='Female'
select @Totalcount
Screen shot 1 After executing the above queries. I am getting the results as showed in an attachments Screen shot 2 On both queries I were used print and select in both results I am not getting a column name.
Please help me on this issue and what should I need do an amendments in an query for appear the column name???