Skip to content
Advertisement

Pass date column in open query view Oracle in SQL Server

Can anyone please tell me if the below query is correct or Incorrect. In this am trying to run it on SQL Server but the view is created on Oracle database. Especially date column is proper or not. as am not getting any record instead of that getting error

returned message “ORA-01861: literal does not match format string”.

Advertisement

Answer

I’d use the date literal syntax date '2020-06-29' so

You could also use an explicit to_date

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement