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?