SQL Storage Compress - 6.1
Operating system error 38 - SQL Storage Compress
You may encounter the following error when querying an encrypted database:
This error arises when SQL Server attempts to access an encrypted database file (*.mdfe, *.ndfe or *.ldfe) and the key file is unavailable, so the file cannot be decrypted.
Resolving this error
Ensure the key file used to encrypt the database file is stored in the keys directory. By default, this is %ProgramFiles(x86)%\Red Gate\HyperBac\keys on 64-bit machines and %ProgramFiles%\Red Gate\HyperBac\keys on 32-bit machines.
You can check the keys directory from the HyperBac Configuration Manager:
- From the system tray, double-click the HyperBac Configuration Manager
icon to open the HyperBac Configuration Manager. Do not stop the HyperBac Control Service. - Select the Advanced tab.
- The Encryption Key Path is displayed under Path Values.

- If the database is suspect or recovering, take the database offline and then bring it back online. To do this:
- Right-click the database in SQL Server Management Studio (SSMS), and select Tasks > Take Offline. Then, right-click and select Tasks > Bring Online.
or,
- Ensure you are connected to the master database, then run the following T-SQL statement for the database:
ALTER DATABASE <database name> SET OFFLINE
followed by
ALTER DATABASE <database name> SET ONLINE
For information on changing the location of the keys directory, see Moving the HyperBac index, key and log files.
For more information on key files, see Working with key files for encrypted data.
Was this article helpful?
SQL Storage Compress
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
- 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
- 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 or upgrading SQL Storage Compress