Overwriting a Maintenance Organization with Data from a Backup File

This help file applies to an out-of-date version of MainBoss.
The most recent version of MainBoss is MainBoss 4.2.2.
For the latest version of this help file can be found here.

< Previous section  |  Table of Contents  |  Index  |  Next section >

You should backup your maintenance organization database on a regular basis. For an explanation of how to do this, see Backups. The Installation and Administration Guide provides additional information about backups and restores, including how to use SQL Server facilities directly.

To restore a backed-up database, you can use Restore Organization in the Maintenance Organization window (see Your Maintenance Organization List). This restore operation uses SQL Server facilities to overwrite an existing database with the data contained in a backup file.

Important Notes about Restoring Databases: There are two operations for restoring databases from backup:

In both cases, MainBoss performs the operation by submitting requests to SQL Server. You must therefore have SQL Server Administrator privileges to perform either operation.

When you use Restore Organization, all MainBoss users will have the same MainBoss security roles that they did at the time the backup was created. In particular, the person who does the restore operation doesn't get any special permissions—just the ones that he or she already had at the time of the backup. On the other hand, Create New Organization from a Backup gives the creator all security roles on the new database, no matter what roles were originally recorded in the backup file. This lets the creator use the new database for any purpose.

Restore operations are run by SQL Server itself on the computer where SQL Server is running. Because SQL Server does the work, the backup file that will be used must be accessible to the login name under which SQL Server runs. Furthermore, the name of the backup file should be relative to the computer where SQL Server is running. Unless the file name explicitly begins with \\computer or a drive name (e.g. C:\), the file name will be assumed to be relative to SQL Server's home directory. (This is true even if the file name begins with a \.)

For example, suppose SQL Server is running on Computer X and you submit a restore request while working on Computer Y. MainBoss will ask you to specify the name of the backup file containing the database you want to restore. Suppose you give the name

C:\MyBackups\Monday.bak

You may think this refers to a file on Computer Y's C: drive. However, the restore operation is performed by SQL Server on Computer X; therefore, SQL Server will try to find the file on Computer X's C: drive, not Computer Y. If the directory C:\MyBackups doesn't exist on Computer X (or if SQL Server's login name doesn't have permissions to read that folder), you'll get an error message and the restore operation won't work.

For this reason, we recommend that you only submit restore requests while logged in to the computer where SQL Server is running. You should also be aware of what permissions SQL Server has and what files will actually be accessible to SQL Server's login name.

Backup Format: There are several different ways to create a backup with Microsoft SQL Server. MainBoss assumes that you did the backup using the backup facilities inside MainBoss itself, or in some other way that uses the same backup format. However, it is possible to create database backup files in such a way that MainBoss cannot restore from the file. This happens when you do the backup with SQL Server Management Studio and specify options that create backup files whose format is different than the one MainBoss expects.

In this case, you can still restore the database from the backup file. You just have to use SQK Server Management Studio directly, rather than using MainBoss.

Command Format: When you click Restore Organization, MainBoss displays a window that lists all known backups of this database. To restore your database from a particular backup, click the backup in the list, then click the Restore button.

Note: Instead of using Restore Organization, you may prefer to use the standard restoration facilities within SQL Server Management Studio or Management Studio Express. For more information, see the Installation and Administration Guide.

< Previous section  |  Table of Contents  |  Index  |  Next section >