on 2014 Aug 21 9:09 AM
I'm trying to convert a VARCHAR value to a DATETIME value in a table in a SQL database with the following Fixed Query Details:
update SAPQNJDB.MPM_AFKOL
set GSUZS = CONVERT(Datetime,'2012-03-28 11:10:00.000')
where AUFNR = '000001000648'
But I receive the error as below:
SQL error has occurred on query The SQL statement "update SAPQNJDB.MPM_AFKOL
set GSUZS = CONVERT(Datetime,'2012-03-28 11:10:00.000')
where AUFNR = '000001000648'" contains the syntax error[s]: - 2:14 - Intermediate-SQL syntax error: CONVERT or TRANSLATE function not allowed
- 2:30 - SQL syntax error: the token "," was not expected here
- 2:30 - expecting "using", found ','
A normal select query on the same tables just works fine.
Request clarification before answering.
Issue is solved.
Changing the datasource from DataSource(SQL) to IDBC(SQL) did the trick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.