SQL Storage Compress - 6.1
Creating compressed databases:which method should I use? - SQL Storage Compress
You can create a compressed version of an existing database in two ways:
- Use the Restore backup to compressed database wizard from the SQL Storage Compress user interface
- Write a T-SQL script using your preferred SQL Server management tool (for example, SQL Server Management Studio)
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.
For more information about how SQL Storage Compress works, see the Technical Overview.
1. Creating a compressed database using the wizard
You should use the wizard if:
- you are new to SQL Storage Compress and want to familiarise yourself with the process (see the Guide for evaluators)
- you want to generate T-SQL scripts which you can then modify and run manually
- your requirements for the compressed database are straightforward (for example, you want to compress all the data files rather than only certain files)
- you want to restore from a single, full backup file
- 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 example for further details.
2. Creating a compressed database using T-SQL scripts
You should use a T-SQL script if:
- you are familiar with writing T-SQL
RESTORE DATABASEcommands and want full control over the command options - your requirements for the compressed database are complex (for example, you only want to compress selected data files)
- you want to compress the transaction log file (.ldf) without encrypting it
- you want to restore from a backup split into multiple files or a combination of backups (for example, full, differential and log)
- the backup file you are restoring from is in Quest Litespeed™ encrypted format, or another third-party backup-tool format
- you need to create compressed databases as part of a batch or scheduled job
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