I have one stored procedure which is giving me an output (I stored it in a #temp table) and that output I\'m passing to another scalar function.
stored procedure
scalar function
Use coalesce():
select coalesce(Eprice, 0) as Eprice
In SQL Server only, you can save two characters with isnull():
select isnull(Eprice, 0) as Eprice