Home Forums SQL Server 2008 T-SQL (SS2K8) how to store result at variable? RE: how to store result at variable?
Durai Samuel
Mr or Mrs. 500
Points: 551
More actions
August 1, 2013 at 5:55 am
#1637742
create proc sp_temp
@count INT = NULL OUTPUT
as
begin
declare @Result varchar(5)
select @count = COUNT(*) from #temptable
end
Try this out