load and dump databases

dump and load work on the ciphertext of encrypted columns. This behavior ensures that the data for encrypted columns remains encrypted while on disk. dump and load pertain to the whole database. Default keys and keys created in the same database are dumped and loaded along with the data to which they pertain.

If the loading database contains encryption keys used in other databases, load does not succeed unless the new syntax with override is used.

load database key_db from "/tmp/key_db.dat" with override

If your keys are in a separate database from the columns they encrypt, Sybase recommends that:

If you load the database containing the keys into a different-named database, errors result when you access the encrypted columns in other databases. To change the database name of the keys’ database:

WARNING! The consistency issues between encryption keys and encrypted columns are similar to those for cross-database referential integrity. See “Cross-database constraints and loading databases” in Chapter 12 of the Adaptive Server Enterprise System Administration Guide: Volume One.