DECLARE @Last_Date datetime DECLARE @Last_Time time SET @Last_Date='1899-12-30 00:00:00' SET @Last_Time='00:00:00'There may be a date setting that will accept the date you used?
begin DECLARE @Last_Date datetime; DECLARE @Last_Time time ; SET @Last_Date='1899-12-30 00:00:00' ; SET @Last_Time='00:00:00' ; if <some condition> then end if ; end>Obviously, SQL Anywhere cannot handle this syntax:
>DECLARE @Last_Date >DECLARE @Last_Time > >SET @Last_Date=30/12/1899 00:00:00 >SET @Last_Time=00:00:00 >>