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

CursorUpdate – PB Docs 126 – PowerBuilder Library

CursorUpdate – PB Docs 126

CursorUpdate database parameter

Description

For those interfaces that support it, CursorUpdate specifies
whether cursors in your target database are declared read-only or
updatable.

Controls

  • DIR Sybase DirectConnect

  • ASE, SYC, and SYJ SAP Adaptive Server Enterprise

Syntax

Parameter

Description

value

A number that specifies whether database
cursors are declared read-only or updatable. Values are:

  • 0

    (Default) Cursors are declared read-only. Sybase Client Library
    cursor declarations include the CS_READ_ONLY option.

  • 1

    Cursors are declared updatable. Sybase Client Library cursor
    declarations include the CS_FOR_UPDATE option. This
    option applies to all updatable columns in the table.

Default

CursorUpdate=0

Usage

Set the CursorUpdate parameter to 1 to declare updatable cursors
if you plan to use either of the following SQL statements
in your application (table represents the table
name and cursor represents the cursor name):

If you are communicating with the database in a PowerBuilder script,
you can reset the CursorUpdate value anytime before or after the
Transaction object has connected to the database.

When you declare cursors updatable in a database accessed
through DirectConnect, the cursor declaration you code must include
a FOR UPDATE OF column_list clause.

When you use updatable cursors with the DIR interface and
a Gatewayless connection to the mainframe, you must set Block=1
before executing the cursor. You can reset the Block parameter to
its default of 100 after you close the cursor within your code.

Examples

To specify that database cursors are declared updatable:

  • Database profile

    Select the Cursors Declared Updatable check box on the Transaction
    page in the Database Profile Setup dialog box.

  • Application

    Type the following in code:


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