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

Coding PowerScript to set values for the DBParm property – PB Docs 2017 – PowerBuilder Library

Coding PowerScript to set values for the DBParm property – PB Docs 2017

Coding PowerScript to set values for the DBParm
property

Another way to specify connection parameters in a script is by
coding PowerScript to assign values to properties of the Transaction
object. PowerBuilder uses a special nonvisual object called a
Transaction object to communicate with the database. The default
Transaction object is named SQLCA, which stands for SQL Communications
Area.

SQLCA has 15 properties, 10 of which are used to connect to your
database. One of the 10 connection properties is DBParm. DBParm
contains DBMS-specific parameters that let your application take
advantage of various features supported by the database
interface.

To set values for the DBParm property in a PowerBuilder
script:

  1. Open the application script in which you want to specify
    connection parameters.

    For instructions, see the section called “Opening Script views” in Users Guide.

  2. Use the following PowerScript syntax to specify DBParm
    parameters. Make sure you separate the DBParm parameters with
    commas, and enclose the entire DBParm string in double
    quotes.

    For example, the following statement in a PowerBuilder
    script sets the DBParm property for an ODBC data source named
    Sales. In this example, the DBParm property consists of two
    parameters: ConnectString and Async.

  3. Compile the PowerBuilder script to save your changes.

    For instructions, see the section called “Compiling the script” in Users Guide.


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