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
Post a Comment