cancel
Showing results for 
Search instead for 
Did you mean: 

"cannot convert to a timestamp" (send to oracle server)

Former Member
0 Kudos

hi everyone.

I want to try to INSERT query from sql anywhere to oracle server.

on oracle server, data type is datetime.

so I write

"INSERT TMP_TABLE(DMT) VALUES (DATETIME('2018-06-27 12:34:56'))"

develop language is vb.net 2017

but returned "cannot convert to a timestamp"

I tried to many method.. but can't find solution.

connection is OLEDB.

already tried to DATE_ORDER='DMY'.

and so on...

if you have any solution, please help me.

thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

JamesZ
Advisor
Advisor
0 Kudos

Are you using oracle pl/sql or third party interface? Anyway for oracle, you can check whether following convert works:

TO_TIMESTAMP(TO_CHAR(BEGIN_DATE, 'dd.mm.yyyy hh24:mi:ss')