GetSecureConnectionString

Description

Obtains the encrypted string used in the database connection.

This function takes effect only when the application is deployed via the Application project and the PowerClient project (it returns -1 when the application is deployed via the PowerServer project).

Applies to

Transaction objects

Syntax

transaction.getsecureconnectionstring ( ) 

Argument

Description

transaction

The name of a connected transaction object.


Return value

String.

Returns the encrypted string if it succeeds and an empty string ("") if an error occurs.

Examples

The following example gets the encrypted string used for database connection:

string ls_connectstring
ls_connectstring=sqlca.GetSecureConnectionString()

See also

EnableSecureConnection

SetSecureConnectionProperty

SetSecureConnectionString