Skip to main content
7-Bedrock
April 29, 2020
Solved

Use thingworx to operate postgresql how to start a transaction

  • April 29, 2020
  • 2 replies
  • 1069 views

As the title, how can i use commit () and rollback () in sql service

Best answer by PaiChung

Best way is to create stored procedures on the DB side and invoke them from Thingworx (using the JDBC connection)

You can write full Procedures on the Thingworx side and execute them through the JDBC connection.

2 replies

PaiChung22-Sapphire IAnswer
22-Sapphire I
April 29, 2020

Best way is to create stored procedures on the DB side and invoke them from Thingworx (using the JDBC connection)

You can write full Procedures on the Thingworx side and execute them through the JDBC connection.

Support
May 7, 2020

Hi @chenzhuang111.

 

If you are satisfied with the response previously provided, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon