Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Function returns null
Message
De
14/03/2004 15:36:43
 
 
À
Tous
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Function returns null
Divers
Thread ID:
00886122
Message ID:
00886122
Vues:
66
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform