SQL Storage Compress - 6.0
Working with key files for encrypted data - SQL Storage Compress
SQL Storage Compress works with encrypted backup files created by SQL HyperBac, and can also create encrypted database files (data files and log files). This topic describes how SQL Storage Compress uses key files with encrypted backup files and database files.
About key files and encryption
When SQL Storage Compress detects a request from a SQL Server instance to read from an encrypted backup file or to work with encrypted database files, it will first check the 'keys' directory on the SQL Server (located at 'C:\Program Files\Red Gate\HyperBac\keys' by default) to look for a valid key file:
- If SQL Storage Compress finds a key file, it uses this key file to encrypt and decrypt the data as it passes through the Windows file system
- If a key file does not exist, or the wrong key file is present, the SQL Server instance will report an error accessing the associated backup file or existing database files.
- When you initially create an encrypted database or backup, if no key file exists, SQL Storage Compress will generate a key file automatically, and place it in the 'C:\Program Files\Red Gate\HyperBac\keys' directory.
You can think of the key file as equivalent to a password for accessing encrypted data. If you lose the key file associated with an encrypted backup file or encrypted database files, the data cannot be accessed or recovered.
Was this article helpful?
SQL Storage Compress
- Using a compressed database after your SQL Storage Compress trial period expires
- Upgrading the HyperBac engine components
all SQL products
- Compatibility of Red Gate tools in 64-bit environments
- Application has encountered an error and needs to close
- Error message after installing SQL Toolbelt - The description for Event ID ( 1 ) in Source ( nview_info ) cannot be found.
- Changing the temporary directory used by the installer
- Toolbelt Installer "hanging" while "scanning volumes"
- Login failing with "trusted SQL Server connection" error when using RunAs
all products
- Some Red Gate products identified as containing a trojan by Anti-Virus software
- Activation may fail with Unknown Error -1
- Product uses web help although a CHM file is available locally
- Argument exception resulting from missing environment variable
- Check for updates may fail when used through proxies
- 'Unidentified Publisher' error when repairing or uninstalling
- Licensing activates product as standard edition
- Moving Red Gate software products to another machine
- Red Gate tools log locations
- The application UI opening slowly when there is no internet access
SQL Storage Compress
all SQL products
all products
- Red Gate product acknowledgements
- Activating your products
- Red Gate bundle history
- Check for updates
- Troubleshooting Check for Updates errors
- Current versions
- Deactivating your products
- Installing Red Gate products from the .msi file
- Requesting additional activations
- Serial numbers for bundles
- Reactivating using a different serial number
- Extending your trial
- Finding your serial numbers
- Moving a serial number from one computer to another
- No response received for manual activation
- Licensing and activation resources
- Troubleshooting licensing and activation errors
- Licensing and activation FAQs
- Red Gate tools log file locations
- Download old versions of products
- Download product prerequisites & utilities
- Support & upgrades
- Upgrading your software
- Upgrading FAQs
- Installing Red Gate SQL Server tools across a network

Using SQL Storage Compress