datetime - SQL Server 2008 R2 - convert() works but cast() does not - any suggestions? -
and please, before marking duplicate have read post many, many times the first thing pops in google not think addresses question.
in pass-through queries via odbc sql server 2008 r2...
this works:
(select x, convert(date, y) so_q1); but not work:
(select x, (cast y date) so_q1); any idea why?
(select x, (cast y date) so_q1);-- not work because incorrect syntax. (select x, cast( y date) so_q1); --works fine. thank @alexk
Comments
Post a Comment