- Kwadwo Boahene
- PowerBuilder
- Monday, 10 February 2020 02:32 PM UTC
In a effort to migrate from db2 to sql server i have run into a problem where an embedded sql command 'insert into' into a keyword column is not working in Sql Server but worked in db2.
///
//db2
INSERT INTO xxxxx.WS_TEMPLATE
(TEMPLATE_ID,
ORDER,
SOURCE_ID)
VALUES (:ll_template_id,:ll_order,:ll_source_id)
USING SQLCA;
////no problems here in db2
//sql server
INSERT INTO xxxxx.WS_TEMPLATE
(TEMPLATE_ID,
[ORDER],
SOURCE_ID)
VALUES (:ll_template_id,:ll_order,:ll_source_id)
USING SQLCA;
/////i get an incorrect syntax near 'ORDER'.
I am using pb2017 and sql server 2016.
Any ideas?
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.