Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

ProcedureInTransaction – PB Docs 2022 – PowerBuilder Library

ProcedureInTransaction – PB Docs 2022

ProcedureInTransaction

Description

Allows PowerBuilder to specify whether to start the transaction
when executing a stored procedure for PowerServer (2021, 2022, or
later).

Applies to

ASE (ODBC)

MySQL

Oracle

PostgreSQL

SQL Server

SQL Anywhere (ODBC)

Syntax

  • 0 — Do not start the transaction.

  • 1 (Default) — Start the transaction

Usage

In the installable cloud app, to prevent transaction timeout (when
ProcedureInTransaction is set to 1), you may
consider the following solutions:

  1. Increase the transaction timeout value (120 seconds by
    default) to have the same number as the session timeout value (3600
    seconds by default). For how to set transaction timeout values,
    refer to Configure
    the timeout settings
    .

  2. First set ProcedureInTransaction=0. When the procedure or
    cursor requires to start the transaction, dynamically set
    ProcedureInTransaction=1 in the script to start the transaction and
    then set autocommit = true or execute Commit or RollBack to
    commit/close the transaction in time (see the example code below).
    In this case, you can set a reasonable value for the transaction
    timeout according to the business logics.

Examples

This example specifies to start a transaction when executing a
stored procedure.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x