{"id":1308,"date":"2022-09-23T18:22:25","date_gmt":"2022-09-23T18:22:25","guid":{"rendered":"https:\/\/www.versionsql.com\/help\/documentation\/the-road-to-versionsql-2-0\/feature-2-undo-script-generation\/"},"modified":"2025-06-18T20:36:25","modified_gmt":"2025-06-18T20:36:25","slug":"undo-script-generation","status":"publish","type":"docs","link":"https:\/\/www.versionsql.com\/help\/documentation\/features\/undo-script-generation\/","title":{"rendered":"Undo Script Generation"},"content":{"rendered":"<h2 style=\"display: none;\">Introduction<\/h2>\n<p>Undo Script Generation provides easy access to the version control safety net, mitigating risk associated with making modifications.\u00a0 This feature is available for all the database schema objects VersionSQL supports: tables, views, stored procedures, functions, etc.<\/p>\n<p>Right-click on the object you want to revert in SSMS&#8217; Object Explorer and select &#8220;Undo&#8221;.\u00a0 Pick a reversion from the history window that appears, then wait a bit while VersionSQL generates an undo script.\u00a0 Review the generated script, then run it on your database.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":98,"menu_order":9,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"footnotes":""},"doc_tag":[],"class_list":["post-1308","docs","type-docs","status-publish","hentry"],"comment_count":0,"_links":{"self":[{"href":"https:\/\/www.versionsql.com\/help\/wp-json\/wp\/v2\/docs\/1308","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.versionsql.com\/help\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.versionsql.com\/help\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.versionsql.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.versionsql.com\/help\/wp-json\/wp\/v2\/comments?post=1308"}],"version-history":[{"count":29,"href":"https:\/\/www.versionsql.com\/help\/wp-json\/wp\/v2\/docs\/1308\/revisions"}],"predecessor-version":[{"id":1481,"href":"https:\/\/www.versionsql.com\/help\/wp-json\/wp\/v2\/docs\/1308\/revisions\/1481"}],"up":[{"embeddable":true,"href":"https:\/\/www.versionsql.com\/help\/wp-json\/wp\/v2\/docs\/98"}],"next":[{"title":"View Changes","link":"https:\/\/www.versionsql.com\/help\/documentation\/features\/view-changes\/","href":"https:\/\/www.versionsql.com\/help\/wp-json\/wp\/v2\/docs\/99"}],"prev":[{"title":"Switch\/Create Branch","link":"https:\/\/www.versionsql.com\/help\/documentation\/features\/switch-create-branch\/","href":"https:\/\/www.versionsql.com\/help\/wp-json\/wp\/v2\/docs\/1217"}],"wp:attachment":[{"href":"https:\/\/www.versionsql.com\/help\/wp-json\/wp\/v2\/media?parent=1308"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.versionsql.com\/help\/wp-json\/wp\/v2\/doc_tag?post=1308"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}