Does anyone know if Microsoft is planning to add a DATE only data type
to SQLServer.
I know that you could use a datetime and convert/cast or use datepart
to compare, but this can be tedious and error prone.
What is the recommended way to compare date-only fields?
eg if convert(char(11 ), @date_field) = convert(getdate (), @date_field)
-- do something??
to SQLServer.
I know that you could use a datetime and convert/cast or use datepart
to compare, but this can be tedious and error prone.
What is the recommended way to compare date-only fields?
eg if convert(char(11 ), @date_field) = convert(getdate (), @date_field)
-- do something??
Comment