Request – PB Docs 126

Request database parameter

Description

Specifies whether to allocate new transaction resources each
time the client application sends a request and then release those
resources after each request.

Controls

  • DIR Sybase DirectConnect
    (applies only to Access Service for DB2/MVS)

Syntax

Parameter

Description

value

Specifies whether you want to release
transaction resources after each request. Values are:

  • 0

    (Default) Maintain resources for the duration of the database
    connection.

  • 1

    Release resources after each request.

Default

Request=0

Usage

Requirements for using the Request parameter

Setting the Request parameter to 1 to release resources has
an effect only when you do both of the following:

  • Set the AutoCommit database preference to True to
    specify that PowerBuilder should issue SQL statements
    outside the scope of a transaction. (See the description of AutoCommit.)

  • Specify the value for Request before connecting
    to a database.

What happens

When you set the Request parameter to 1, transaction resources
are allocated for each request and released when the request finishes. This
might slow the performance of your application, but it allows more simultaneous
users of the system.

Examples

To specify that you want to release resources after
each request:

  • Database profile

    Select the Release Transaction Resources After Each Request
    check box on the Transaction page in the Database Profile Setup dialog
    box.

  • Application

    Type the following in code:

See Also


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