How to backup and restore databases
KB Article #:
32919
Summary:
How to backup and restore databases
Description:
How to backup and restore databases?
Resolution:
 
To back up a database:
  1. On the SQL server, launch SQL Server Management Studio and connect to the correct SQL database engine.
  2. Expand the Database folder.
  3. Right click on your database and choose Tasks > Backup.
  4. Under Destination, confirm that the path to your backup folder is correct.
    •   If you need to change the path, click Remove, then click Add.
  5. Use the ellipses to navigate to a specific folder.
    •   Note only a folder only on a local drive is available, not a mapped drive. Move the backup file later as needed.
  6. Give the backup file a unique filename with the extension of .BAK.   
    •   It is a good practice to include the database name and a date tag within the filename, for easy identification.
  7. Click OK, OK, and OK to begin the backup.
 
To restore a database that does not already exist:  (from a backup of another database)
  1. On the SQL server, launch SQL Server Management Studio and connect to the correct SQL database engine.
  2. Right click on the Database group and click Restore Database.
  3. On the General page, under Source, choose Device.
  4. Use the ellipses to navigate to the folder where the backup resides.
  5. Select Add, highlight the BAK file, and click OK, OK.
  6. Under Destination, the name that appears will be the name of the database from which the backup was taken.  
    •  Change this to specify the name for the restored database.  
  7. Hit TABDo not hit OK yet.
  8. In the left panel, select Files.
  9. In the grid at the right, notice the path in the column called Restore As.   
    •  If this location is not correct, click the box Relocate All Files to Folder, and specify the folder locations for the data file and the log file.  
    •  The data file (.mdf) and log file (.ldf)  may be on the same or different physical drives.
  10. Click OK to begin the restore.
 
To restore a database that already exists:  (to OVERWRITE it)
  1. On the SQL server, launch SQL Server Management Studio and connect to the correct SQL database engine.
  2. Right click on the database name and click Tasks > Restore > Database.
  3. On the General page, the database name will appear as both the Source and the Destination.
  4. Check the date of the backup to make sure this is correct.  
  5. If the Source is not correct, select Device, use the ellipses to navigate to the correct backup file, and click OK one time only.
  6. In the left panel, select Files.
  7. In the grid at the right, notice the column called Restore As. Verify that the folder locations are correct.
  8. In the left panel, select Options
  9. Select Overwrite the Existing Database (WITH REPLACE). 
  10. Click OK to begin the restore.
 
To verify the Weblink Configuration for a restored database:
  1. On the Web\Application Server, launch Weblink.
  2. Enter the Weblink password.
  3. Select the record for the database. 
  4. If you are setting up a new database, select New > Copy Current and specify the new database name.
  5. Verify the information on this page.
  6. Click Test > Database Connection to confirm that the specifications are correct.
  7. Save the changes.
 
For more information, see SQL Backup and Restore concepts
 
Details  
 
To view full details, log in with your Deltek Support Center account.