The Replace With > Local History command provides you with the ability to revert a SQL file back to a previously recorded local history.
To replace the contents of a file with the contents of a previously saved version via local history:
- Right-click the SQL Editor and select Replace With > Local History from the shortcut menu.
The Replace from Local History dialog appears. - In the Local History of ... panel, select a previously recorded version of the file by clicking the appropriate timestamp.
- Click Replace.
The contents of the currently-opened file revert to the contents of the file at the history point you selected in the dialog.
Alternatively, from the shortcut menu, select Replace With > Previous from Local History to replace the contents of the file with SQL Query Tuner's last recorded history point.