Database Management 101

Like Chuck Mangione, a SQL Server Backup “Feels So Good”

February 22, 2016 — Brian Higgins

In a previous blog post, I discussed methods to address GIS errors.  One of those methods was the infamous restoration from backup.  Depending on the frequency of backup, the level of inconvenience may be minimal if the backup was taken in the not too distant past (time measured in minutes or hours, not days).

To illustrate the point….a past onsite conversion project provided challenging network conditions of periodic, sporadic service disruptions.  These disruptions caused disconnection between the ArcGIS workstation and its license server resulting in premature conversion termination.  Since the code took four to six hours to complete from its initiation, any disruption forced a restoration from backup and a return to the beginning.

To alleviate the situation, the conversion code was broken into segregated packets.  Upon the successful completion of a packet, an immediate database backup was taken.  In the event of an unsuccessful conversion due to a network “Hiccup”, a database restoration was conducted to the previous state.   This “Plan B” proved to be a successful methodology, and the completed conversion was eventually achieved.

Nightly, scheduled backups should already be in implementation.  But how does one conduct an immediate database backup via SQL Server Management Studio?  These one-time backups can save one’s back in the event of undesired results.

To produce a backup via SQL Server Management Studio and “Put it on the shelf”, conduct the following steps:

  • Right-click on the desired database (SSPRocks), choose Tasks, and then Back Up from the context menus (Figure 1).
Figure 1. Initiation of Backup
  • In the Backup Database GUI, verify the database name, Full Backup type, and the name/location of the backup (Figure 2).  It is suggested to add the date of the backup in the name and version number.
Figure 2. Backup Database GUI
In the event that the backup is required, conduct the following steps:

 

  • Right-click on the database, choose Tasks, Restore, and Database from the context menus (Figure 3).
Figure 3. Restoration of Database Initiation
  • In the Restore Database GUI (Figure 4), choose the Device Option and navigate to the latest/greatest backup conducted.
Figure 4. Restore Database GUI
  • Verify that the destination database is the same database, and click the OK Button.  The database is back to the state when the backup was taken.
This methodology is no replacement to automated, scheduled backups.  It is in fact an excellent safety net when doing any procedure (i.e. configuration, mass data population/conversion, etc).  I hope this (and any of our other) post provides some assistance.

Author’s Note
 
The other day, I heard Chuck Mangione’s song “Feels So Good” for the first time in about 30+ years.  My first thought was, “I haven’t heard that song for 30+ years”.  My second thought was that would make a nice blog post title.

We Wrote the Book

The Indispensible Guide to ArcGIS Online

Download It for Free

Brian Higgins

Solution Architect

What do you think?

Leave a comment, and share your thoughts

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


This site uses Akismet to reduce spam. Learn how your comment data is processed.