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

  • SEARCH
  • Home
  • 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 5943873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T16:27:29+00:00 2026-05-22T16:27:29+00:00

I just made a boneheaded mistake. Thinking I was connected to my local dev

  • 0

I just made a boneheaded mistake. Thinking I was connected to my local dev db, I accidentally ran the following script against my production SQL Azure database:

DELETE myTable
GO

Is my data gone for good as I fear, or does SQL Azure have some magic “Roll back to 1 hour ago” button?

Is there anything I can do to recover my table’s data?

(BTW, no, I do not have a backup of the database. SQL Azure does not support backups. And, yes, I realize that probably answers my own question… I just hope I’m wrong.)

  • 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-22T16:27:29+00:00Added an answer on May 22, 2026 at 4:27 pm

    Update

    Azure SQL Database automatically creates backup for all Basic, Standard, and Premium databases. With these backups you can perform Point in Time Restore and recover deleted databases. These backups are also Geo-Replicated to the pair region, so in the event of a regional disaster you could recover your databases with your latest backups (1 hour RPO for V12 servers).

    You can learn more about Azure SQL Database’s backup and restore capabilities here: https://msdn.microsoft.com/en-us/library/azure/jj650016.aspx.

    There is also a blog on Point in Time Restore and a blog on Geo-Restore and a document about the Business Continuity offerings in Azure SQL Database.

    You probably don’t want to hear this, but regular database copies seems to be your only option, i.e., http://social.technet.microsoft.com/wiki/contents/articles/sql-azure-backup-and-restore-strategy.aspx – and must be actively done.

    User Error A common cause of database
    restores is not from failure or
    catastrophe; it is caused by user
    error. Either a mistaken command like
    DROP DATABASE, schema changes that
    don’t get executed right (causing data
    loss), or code that corrupts the data.
    Creating backups to protect against
    user error is the responsibility of
    the customer and needs to be taken
    into consideration when writing the
    backup and restore strategy.

    In service update 4 of SQL Azure the
    ability to copy the database was
    introduced. This feature allows you to
    copy a running database creating
    another fully functional SQL Azure
    database in the same data center. This
    is a strategy you can take before
    making any changes to the database or
    code calling the database to create a
    complete backup. One of the nice
    things about this technique is that
    the copy is a fully functional
    database and could be restored
    quickly. In fact, restoration might be
    as simple as changing the applications
    connection string to point to the copy
    of the database.

    The Transact SQL looks like this:

    CREATE DATABASE
    destination_database_name
    AS COPY OF [source_server_name.]source_database_name
    To copy the Adventure Works database
    to the same server, I execute this:

    CREATE DATABASE [AdvetureWorksBackup]
    AS COPY OF [AdventureWorksLTAZ2008R2]
    This command must be executed when
    connected to the master database of
    the destination SQL Azure server.

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

Sidebar

Related Questions

I just made an interesting mistake in my code: Dim endColumn As Integer =
I just made a script to grab links from a website, and in turn
I just made a script to empty the previously selected tab. It is working
I just made a push on the production site and all the changes were
The following is a contrived example I just made up to help me understand
I just made a php function function deletebooking($orderID){ $sql=DELETE FROM bs_reservations WHERE id='.$orderID.'; $result=mysql_query($sql)
I just made a register script from scratch, but I'm still going to improve
I just made the following change git rm -r --cached myProject/build/* and pushed the
i've just made a sign script for my website. The form posts the data
I have just made a script in Python which will connect to my MySQL

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.