Call a Stored Procedure Without Wrapping in a Transaction
I have a process that calls a stored procedure to copy data between two SQL databases, one being on-premise while the other is in Azure. The Distributed Transaction Coordinator (DTC) service is only available on the managed instance in Azure. Therefore, we are unable to set up the DTC in windows on both ends. SQL cannot run the stored procedure when run from Decisions as it tries to put a transaction on the stored procedure called. Because the query is across servers, SQL tries to escalate the transaction to make it transactionally secure on both servers. This cannot be done as Azure SQL cannot do use DTC service so the procedure fails.
Is there a way we can call a Stored Procedure without wrapping the call in a transaction using an Internal Service Method? This will prevent us from getting distributed transaction issues on procedures that query across servers.
Comments
-
This can be accomplished using the Raw SQL step. Under Connection Settings there is an option to toggle Use Transaction Data which prevents the execution of a transaction.
If you are in a newer version of Decisions, 8.18.0.72809 or newer, Decisions has also added a new feature called "Run Without Transaction" to disable creating a transaction when executing stored procedures when transactions are not used.
Howdy, Stranger!
Categories
- 4.2K All Categories
- 67 General
- 11 Training
- 202 Installation / Setup
- 1.1K Flows
- 106 Rules
- 262 Administration
- 212 Portal
- 490 General Q & A
- 695 Forms
- 333 Reports
- 3 Designer Extensions
- 47 Example Flows
- 52 CSS Examples
- 1 Diagram Tile
- 7 Javascript Controls
- 179 Pages
- 5 Process Mining
- New Features
- 179 Datastructures
- 69 Repository
- 221 Integrations
- 28 Multi-Tenant
- 27 SDK
- 78 Modules
- 56 Settings
- 25 Active Directory
- 12 Version 7
- 35 Version 8
- 83 Lunch And Learn Questions