SQL Storage Compress - 6.1
SQL Server error 3257 "Insufficient free space" - SQL Storage Compress
You may encounter the following error when restoring a backup to a compressed database using a T-SQL script:
This error arises when the disk space available for your compressed database files is less than the space that would be required if the files were not compressed.
Resolving this error
To prevent this error add a parameter to the hyperbac.conf configuration file:
- Open the hyperbac.conf file in a text editor.
By default, hyperbac.conf is located in %ProgramFiles%\Red Gate\HyperBac\bin on 32-bit machines and %ProgramFiles(x86)%\Red Gate\HyperBac\bin on 64-bit machines.
- Add the following line at the end of the file:
VirtualDiskSize=<size in GB>where <size in GB> is the amount of space that would be necessary to restore the database without compressing the database files.
For example, if you are trying to create a compressed database for which the uncompressed database files would require 100 GB of disk space, add the line:
VirtualDiskSize=100You can set the VirtualDiskSize parameter to whatever value is necessary to accommodate the uncompressed size of the database files, irrespective of how much physical disk space is actually available. This value will be reported to SQL Server for all disk volumes.
- Run the restore process again. Provided you have set the VirtualDiskSize parameter to a high enough value, the "insufficient free space" error will not be raised by SQL Server.
- Once you have successfully created your compressed database, edit the hyperbac.conf file to remove the VirtualDiskSize parameter.
The VirtualDiskSize parameter affects all the restore operations you run on this SQL Server. If you leave the VirtualDiskSize parameter in place, this may cause problems with subsequent restore operations that are not using SQL Storage Compress, as the reported free space available on the disk volumes will be incorrect.
Note: when you use the wizard to restore a backup to a compressed database, configuration changes are made automatically to prevent this error arising.
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