Subsetting command-line reference - explain
Published 18 July 2025
Generates an execution plan showing how RGSubset will process your subsetting operation without actually performing it.
Useful for previewing scope, troubleshooting unexpected results, and validating configurations before running the full subsetting operation.
The explain execution plan output is verbose and intended for debugging with Redgate support.
rgsubset explain --database-engine SqlServer --source-connection-string "[source connection string]" --options-file "[options file path]" --output-file "[execution plan file]"
Option | Required? | Notes |
---|---|---|
--database-engine | The type of the database to classify. Must be one of:
| |
--source-connection-string | The connection string of the database to subset. Can also be set via a | |
--options-file | The file path to an options file. | |
--output-file | The file path where the execution plan will be saved. The plan is generated in JSON format. | |
| The verbosity level to log at.
| |
| The location of the log file, or | |
| Show help and usage information. |
When to Use
Generate an execution plan when you need to:
- Preview subsetting scope before running the operation on production data
- Troubleshoot unexpected results from previous subsetting operations
- Validate configuration before committing to a full subsetting process
- Analyze performance requirements for large or complex database schemas
Understanding the Output
The execution plan is saved as a structured file (JSON) containing detailed information about how RGSubset will process your subsetting request. This includes table processing order, and relationship mappings.
If you need help interpreting an execution plan, contact Redgate support and include the generated plan file with your request.