SQL Refactor - 1.3
Learning SQL Refactor - 1.3
Getting started
SQL Refactorâ„¢ enables you to improve the appearance or structure of your SQL code without changing its behavior.
SQL Prompt is compatible with SQL Server 2008, SQL Server 2005, and SQL Server 2000. It can be integrated into Microsoft SQL Server 2008 Management Studio and Microsoft SQL Server 2005 Management Studio.
You can use SQL Refactor to:
- Format your SQL code and database objects. The following refactorings are provided:
- Encapsulate As New Stored Procedure creates a new stored procedure from selected SQL code, and optionally replaces the selected code with a reference to the stored procedure.
- Expand Wildcards expands subqueries that contain SELECT * or SELECT table.* so that they list all of the columns.
- Find Unused Variables and Parameters highlights any variables or parameters in a script that are declared or assigned values but not used, and any values that are not used.
- Lay Out SQL reformats your SQL code to make it more readable without changing its behavior.
- Qualify Object Names modifies the script so that all object names are qualified in the format [owner].[object]
- Smart Rename generates a script to rename objects, columns, or parameters in a database without breaking dependencies so that the integrity of the database is maintained.
- Split Table generates a script that copies and moves columns from an existing table to a new table whilst retaining the original data and modifying referencing objects to maintain database integrity. You can use this feature to create tables to enforce domain restrictions using referential integrity.
- Summarize Script displays a summary of the actions that a script will perform in the order in which they will occur.
- Uppercase Keywords puts keywords into uppercase.
- Set up options for your refactorings, and save them as options sets
Getting more information
Was this article helpful?
SQL Refactor
- Menu item grayed out
- Removing menu items after uninstalling SQL Prompt and SQL Refactor
- Installation fails when Management Studio is not installed (version 1.1)
- SmartRename is greyed out
- Installer doesn't recognise that SSMS is installed
- Dependency creation in Smart Rename
- Add-in failing to load into SQL Server Management Studio on Vista
- Removing SQL Server Management Studio Integration after uninstallation
- Layout SQL Error
- Log files
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 Refactor
- Activating your products
- Activating your products
- Getting help offline
- SQL Refactor release notes - version 1.xx
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

Refactorings