AdsEncryptRecord

Advantage Client Engine

Encrypts the current record after encryption has been enabled.

Syntax

UNSIGNED32

AdsEncryptRecord( ADSHANDLE hTable );

Parameters

hTable (I)

Handle of a table.

Remarks

AdsEncryptRecord encrypts the current record in a table with the current password set via AdsEnableEncryption. However, any memo or BLOB data associated with the record is not encrypted. To encrypt memo and BLOB data, the entire table must be encrypted via AdsEncryptTable. If the record is already encrypted, it is ignored. Note that you only need to call this API if you want the current record to be encrypted, and you are not going to make changes to the record. Normally, when encryption is enabled, any record that you change will automatically be encrypted.

 

Note This API only accepts table handles. The use of a cursor handle with this API is illegal and will result in an error. See AdsExecuteSQL for more details.

 

Note AdsEncryptRecord is only applicable with free tables. The encryption process is done automatically with database tables. ALTER permissions on the table are required to encrypt or decrypt database tables. See Advantage Data Dictionary for more information.

Example

Click Here

See Also

AdsEnableEncryption

AdsIsRecordEncrypted

AdsIsEncryptionEnabled

AdsDecryptRecord