SQL Storage Compress - 6.0
Creating a compressed database: SQL Storage Compress wizard or T-SQL scripting
You can create a compressed version of an existing database using one of two methods:
- automatically, using the SQL Storage Compress Restore backup to compressed database wizard
- manually, by writing and executing a T-SQL script using your preferred SQL Server management tool (SQL Server Management Studio, for example)
Whichever method you choose, the same basic principle applies:
If you don't already have a backup of the database you want to compress, you will need to create one before proceeding with either method.
Deciding which method to use
Each method has advantages and disadvantages, but in most cases, using the wizard in the SQL Storage Compress application is the best option.
You should use the wizard (automatic method):
- if you are using SQL Storage Compress for the first time, and need a simple way to create compressed databases, and to review the space savings you could make
- if you want avoid having to write your own T-SQL statements from scratch
- if your requirements for the compressed database are relatively straightforward (for example, you want to compress all the data files rather than a select few)
- if the backup file you are restoring from is in one of the following formats: native SQL Server, SQL Backup Pro, SQL HyperBac, or Quest LiteSpeed™ (unencrypted)
See the worked examples for further detail.
You should use T-SQL scripting (manual method):
- if you are familiar with writing T-SQL
RESTORE DATABASEcommands, and need full control over the command options - if your requirements for the compressed database are complex (for example, you only want to compress selected data files)
- if the backup file you are restoring from is in Quest Litespeed™ encrypted format, or another third-party backup-tool format
- if you need to create compressed databases as part of a batch or scheduled job
See the worked examples for further detail.
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