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

Notes on using the SNC interface – PB Docs 2017 – PowerBuilder Library

Notes on using the SNC interface – PB Docs 2017

Notes on using the SNC interface

Using the DBHandle PowerScript
function

The DBHandle function on the Transaction object returns the
IUnknown* interface of the current session object. You can use this
interface to query any interface in the session object. The interface is
not locked by pIUnknown->Addref() in PowerBuilder, therefore you should
not call the pIUnknown->Release() to free the interface after using
it.

SQL batch statements

The SNC interface supports SQL batch statements. However, they must
be enclosed in a BEGIN…END block or start with the keyword
DECLARE:

  • Enclosed in a BEGIN…END block:

  • Starting with the keyword DECLARE:

You can run the batch of SQL statements in the Database painter or
in PowerScript. For example:

Connection pooling

The SNC interface pools connections automatically using OLE DB
pooling. To disable OLE DB pooling, type the following in the Extended
Properties box on the Connection tab page in the Database Profile Setup
dialog box:

You can also type the following statement in code:

Triggers and synonyms in the Database
painter

In the Objects view for SNC profiles in the Database painter,
triggers display for tables in the Tables folder and Microsoft SQL Server
2005 synonyms display for tables and views.


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