How do I specify date literal when writing SQL query from SQL Server that is linked to Oracle?
I prefer the ODBC format: –DateTime SELECT {ts’2015-09-20 12:30:00′} –Time (however this comes with “today”-time) SELECT {t’12:30:00′} –Date SELECT {d’2015-09-20′} GO The simple date literal is not culture independent… SET LANGUAGE ENGLISH; SELECT CAST(‘2014-09-13’ AS DATETIME); GO SET LANGUAGE GERMAN; SELECT CAST(‘2014-09-13’ AS DATETIME);–ERROR: there’s no month “13” GO But it works – however – … Read more