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

Copying DBParm syntax from the Preview tab – PB Docs 2022 – PowerBuilder Library

Copying DBParm syntax from the Preview tab – PB Docs 2022

Copying DBParm syntax from the Preview tab

The easiest way to specify DBParm parameters in a
PowerBuilder application script is to copy the DBParm syntax from the
Preview tab in the Database Profile Setup dialog box into your code,
modifying the default Transaction object name (SQLCA) if
necessary.

As you set parameters in the Database Profile Setup dialog box
in the development environment, PowerBuilder generates the correct
connection syntax on the Preview tab. Therefore, copying the syntax
directly from the Preview tab ensures that you use the correct DBParm
syntax in your code.

To copy DBParm syntax from the Preview tab into your
code:

  1. On one or more tab pages in the Database Profile Setup
    dialog box for your connection, supply values for any parameters
    you want to set.

    For instructions, see Setting database parameters
    in the development environment
    .

    For information about the parameters for your interface and
    the values to supply, click Help.

  2. Click Apply to save your changes to the current tab without
    closing the Database Profile Setup dialog box.

  3. Click the Preview tab.

    The correct DBParm syntax for each selected option displays
    in the Database Connection Syntax box.

  4. Select one or more lines of text in the Database Connection
    Syntax box and click Copy.

    PowerBuilder copies the selected text to the
    clipboard.

  5. Click OK to close the Database Profile Setup dialog
    box.

  6. Paste the selected text from the Preview tab into your code,
    modifying the default Transaction object name (SQLCA) if
    necessary.


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