Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Function returns null
Message
From
14/03/2004 15:36:43
 
 
To
All
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Function returns null
Miscellaneous
Thread ID:
00886122
Message ID:
00886122
Views:
65
I ´ve designed this function in sql server but it returns null instead of the correct value, i execute the sql query and i see the correct value.

Any Idea what is wrong.

Thank´s-


ALTER FUNCTION dbo.TotVenci
(@IdCliente Int,
@hasta datetime )
RETURNS money
AS
BEGIN
Declare @totvenci money
set @totvenci=(select sum(venci.importe) from venci where
venci.IdCliente=@IdCliente and venci.fecha<=@hasta )
RETURN @totvenci
END
Next
Reply
Map
View

Click here to load this message in the networking platform