How could i create a SQL transaction in a service?
Hi,
As I know, a SQL transaction is managed (open / commit / rollback) by the platform, it would be opened before a service is invoked, commit if a service call is success without any exception, or rollback if there is an error occurred. My issue is, I have a service which will need to loop through 10000 things and do some changes, it means that there would have a lot of changes made, and the transaction would contain a lot of changes in database memory, and of course, that will hold / acquire too many locks on database resources for hours. I want to create 10000 small transactions instead of one huge transaction, but i cannot find an example how to open a transaction in scripting.
My Bests,
Hung Tran

