SQL Storage Compress - 6.1
Operating system error 31 - SQL Storage Compress
You may encounter the following error when querying a compressed or encrypted database:
This error arises when SQL Server attempts to access a compressed or encrypted database file (*.mdfx, *.ndfx, *.ldfx, *.mdfe, *.ndfe or *.ldfe) and the HyperBac Control Service is stopped, so the file cannot be decompressed or decrypted.
Resolving this error
Ensure the HyperBac Control Service is running before using a database. You can check the status of the HyperBac Control Service and restart it if necessary in two ways:
- From the SQL Storage Compress user interface if the service is stopped, a warning appears at the bottom of the window. Click the hyperlink to restart the service.

- From the system tray if the service is stopped, the HyperBac Configuration Manager icon is modified:
Right-click the icon and select Start HyperBac Control Service to restart the service.
If any databases are suspect or recovering after the service has restarted, take each database offline and then bring it back online. To do this:
- Right-click each 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 each database:
ALTER DATABASE <database name> SET OFFLINE
followed by:
ALTER DATABASE <database name> SET ONLINE
Important: do not stop the HyperBac Control Service unless instructed to do so by Red Gate Support. For information on stopping the HyperBac Control Service, see Stopping the HyperBac Control Service.
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