Description
Enables the database secure connection.
Applies to
Transaction objects
Syntax
transaction.enablesecureconnection ( boolean flag )
Argument |
Description |
---|---|
transaction |
The name of a connected transaction object. |
flag |
A boolean indicating whether to enable the secure connection: True -- Enables the secure connection. False -- Not to enable the secure connection. |
Return value
Integer.
Returns 1 if it succeeds and -1 if an error occurs. If any argument's value is null, the method returns null.
Examples
The following example enables the secure connection, and sets the encrypted connection string:
sqlca.EnableSecureConnection (true) sqlca.SetSecureConnectionString("xqRAXnVg6rXmXbnDh0KDONUBU1rnnrjoD91RyPElnxrf0l9SnSlfpVvBhjVILLH9+mvvHhYexk0niM+N17rdZQLFCEW0x7z89qnNpVpIDgbhKHB7tvPyM2CaoFc6gsdvifEmUh0ICExJAyfzAA+GcA==") sqlca.AutoCommit = false connect;
See also