Custom service with insert into command
hi all,
is it possible to insert multiple rows into Oracle table via service?
I have simple sql command:
INSERT INTO thingworxTestTable (PROPERTY1) VALUES ('02'), ('03')
but it doesn't work. Thingworx ends with error:
"Unable to Invoke Service FillTable on ReservationSystem_Oracle : Execute Update failed: java.sql.SQLSyntaxErrorException: ORA-00933: SQL command not properly ended".
Sql script seems to work ok only for one line, because having two lines of code:
INSERT INTO thingworxTestTable (PROPERTY1) VALUES '02'
INSERT INTO thingworxTestTable (PROPERTY1) VALUES '03'
also ends with this same error message.
Any idea how to type multiple command rows in one service??
thanks in advance
Krzysiek

