Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » UltraLite - AppForge Programming » UltraLite for AppForge API Reference » ULConnection class

CancelSynchronize method Next Page

ChangeEncryptionKey method

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.