sir
ALTER PROCEDURE [dbo].[GL_IntrestCalculation]
@bal_amt numeric(10,2),
@intrst_rate decimal(6,3),
@dueDateCount decimal(6,3) ,
@result DECIMAL(5,3) out
AS
BEGIN
Declare @str nvarchar(MAX);
SET @str = '@bal_amt + @intrst_rate + @dueDateCount / 360'
select cast(@str AS decimal(5,3))
set @result=@str
return (@result)
END.
here throgh program am passing @bal_amt,@intrst_rate,@dueDateCount these three values and after that i want to return the @result answer to the textbox... help me sir
1 Reply
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Riyaz AkhtarPosted Feb 3, 2014, 12:39 PM
see below link to know more about return keyword:
http://technet.microsoft.com/en-us/library/ms174998.aspx
Use Select instead of return, I have modified your code ,see below: