sql server - Msg 195, Level 15, State 10, Line 6 'Datetime' is not a recognized built-in function name -


i getting error while running query

declare @currentdate datetime set @currentdate = getdate() select count(id)      dbo.tbllstofclientholidays      datetime(@currentdate) = convert(varchar(10),getdate(clientholdiday),10) 

select       count(id)          dbo.tbllstofclientholidays         convert(varchar(10),clientholdiday,10) = convert(varchar(10),@currentdate,10) 

Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -