Description
Changes the value of the transaction object property in the encrypted connection string.
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.setsecureconnectionproperty ( string name, string v )
Argument |
Description |
---|---|
transaction |
The name of a connected transaction object. |
name |
A string indicating the name of the transaction object property whose value will be set. It can be one of the following properties:
|
v |
A string indicating the value of the transaction object property to be set. |
Return value
Integer.
Returns one of the following values:
1 -- success
0 -- general error
-1 -- invalid name
If any argument's value is null, the method returns null.
Examples
The following example changes the value of the logid property to "appeon":
sqlca.EnableSecureConnection (true) sqlca.SetSecureConnectionString("xqRAXnVg6rXmXbnDh0KDONUBU1rnnrjoD91RyPElnxrf0l9SnSlfpVvBhjVILLH9+mvvHhYexk0niM+N17rdZQLFCEW0x7z89qnNpVpIDgbhKHB7tvPyM2CaoFc6gsdvifEmUh0ICExJAyfzAA+GcA==") sqlca.SetSecureConnectionProperty("logid", "appeon") sqlca.AutoCommit = false connect;
See also