Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6195119
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:24:48+00:00 2026-05-24T03:24:48+00:00

I have a huge sql script that makes a lot of changes in my

  • 0

I have a huge sql script that makes a lot of changes in my db scheme and in my data. The script includes GO commands.

Is there any way to execute the script and undo it in case of an any error?

I cannot wrap everything in transaction since there is GO commands.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T03:24:49+00:00Added an answer on May 24, 2026 at 3:24 am

    You can wrap multiple batches in a transaction, you are wrong about that, but truth is that a complex upgrade script is unlikely to be possible to execute in one single transaction. Your best solution would to take a backup and if the script fails restore the database from the backup.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using Oracle Sql Developer I have a huge script that creates tables,
I have a huge ETL script that I am planning to understand. Are there
i have a huge sql query that is attached to the rowsource of a
I have a few huge tables on a production SQL 2005 DB that need
We have a huge Oracle database and I frequently fetch data using SQL Navigator
I have a huge Perl script (1500+ lines) that takes about 8 hours to
I have a huge SQL script which i need to analyse. It would be
I have a huge SQL file that gets executed on the server. The dump
I have a huge SQL file that I want to restore to mysql server
I have a huge problem with the REPLACE SQL function in Microsoft SQL Server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.