As the error says, in SQL Server 2008 or 2012 there is no DATE function (you checked both values, so I'm not sure what you are aiming for). However, you can use the DATE type in SQL Server 2008 and later:
WHERE EnterDate = CONVERT(date,GETDATE())
Note that there is no CURDATE function CURDATE , so I translated this to GETDATE()
D Stanley Jan 07 '14 at 1:55 april 2014-01-07 13:55
source share