Connecting to the database
Once you establish the connection parameters by assigning
values to the Transaction object properties, you can connect to
the database using the SQL CONNECT statement:
1 |
// Transaction object values have been set. |
1 |
CONNECT; |
Because CONNECT is a SQL statement—not
a PowerScript statement—you need to terminate it with a
semicolon.
If you are using a Transaction object other than SQLCA, you must include
the USING TransactionObject clause in the SQL syntax:
1 |
CONNECT USING <span>TransactionObject</span>; |
For example:
1 |
CONNECT USING ASETrans; |
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest