I have an internal variable in a stored procedure holding the number of seconds between one number and another
DECLARE @Variable int
SET @variable = DATEDIFF(second, @date1, @date2)
INSERT test(value)VALUES(@variable)
gives me 0, while
INSERT test(value)VALUES(DATEDIFF(second, @date1, @date2))
gives me the correct value
...... why?????
[sig][/sig]