Encrypt the database with the specified key.
ChangeEncryptionKey( newkeyAs String )
Member of UltraLiteAFLib.ULConnection
newkey The new encryption key value for the database.
When you call CreateDatabase with a value in place for EncryptionKey, the database is created with encryption. Another way to change the encryption key is by specifying the new encryption key on the ULConnection object. In this example, "apricot" is the key.
Connection.ChangeEncryptionKey( "apricot" )
Connections to the database, such as OpenConnection, must, after the database is encrypted, specify apricot as the EncryptionKey property too. Otherwise, the connection fails.