SQL Restore procedures
© PCSchool - User Guide
Restoring a SQL database
Restoring a Backup
Table of Contents
Step 1: Identify the database ..................................................................................... 1
Step 2: Do a full SQL Backup of the Work Area first............................................... 2
Step 3: Login to SQL Server Management Studio .................................................... 2
Step 4: Select the database you wish to restore too............................................... 3
Step 5: Restoring from an available backup ............................................................ 4
Using a Backup from another location: .................................................................... 4
Step 6: Select #Files Tab from right hand side ........................................................ 5
Step 7: #Options tab .................................................................................................. 6
Step 1: Identify the database
Path: Scholastic > Utilities > Work area maintenance
To identify the database, log into Back Office.
Under Scholastic > Utilities > Workarea Maintenance, select the Work Area name from the dropdown.
Take note of the ‘Database Name’ and the ‘Server” on which the database exists. As per the below
sample you can see the [Server] is “dennispc\sqlexpress” (normal format is severname\sqlserver
instance name)
and the [Database name] is PCSchool.
Note: Different Workareas will have different database names.
Page 1 of 7
Version 2017
© PCSchool - User Guide
Restoring a SQL database
Step 2: Do a full SQL Backup of the Work Area first. Click here for see instructions about how
to do this. Once your backup is complete, go to Step 3.
Step 3: Login to SQL Server Management Studio
Once the database is identified, open the SQL Server Management Studio application. This is generally
installed on the SQL server.
1. [Authentication]: Either login as a windows user (if it has the necessary security) or use SQL Server
Authentication (PCSchool uses an internal SQL login to access data)
2. [Connect]
Page 2 of 7
Version 2017
© PCSchool - User Guide
Restoring a SQL database
Step 4: Select the database you wish to restore too
In this example we are going to do a restore to PCSPlay from a backup that we have created from
PCSchool.
1.
2.
3.
4.
Right click on the [database] you wish to restore to
Select [Tasks]
Select [Restore]
Select [Database]
Page 3 of 7
Version 2017
© PCSchool - User Guide
Restoring a SQL database
Step 5: Restoring from an available backup
1. Select your Database you wish to restore e.g. PCSchool (e.g. getting the backup from PCSchool)
2. [Destination] select the database you are restoring too (e.g. I want to restore to PCSPlay)
3. Your system will find your last backup – if it isn’t the correct one, see below
Using a Backup from another location:
1.
2.
3.
4.
Select [Device] – and from dropdown
Select [Add] – if there is already one showing highlight it and go [Remove]
Select the backup that you wish to restore
[OK] [OK]
Page 4 of 7
Version 2017
© PCSchool - User Guide
Restoring a SQL database
Step 6: Select #Files Tab from right hand side
(This is an example of an INCORRECT path as it is going back to where it was made from, not our
intended destination)
Select Files
Make sure you have the correct database selected as this will write back into the named database In
our inteneted example, the files will be PCSPlay.mdf and PCSPlay_log.ldf
1. Select the drop down from the line
2. Select the file you wish to restore to (e.g. PCSPlay.mdf
3. Then on next line select (e.g. PCSPlay_log.ldf)
Page 5 of 7
Version 2017
© PCSchool - User Guide
Restoring a SQL database
It now looks like this:
Step 7: #Options tab
1.
2.
3.
4.
Select [Options]
[Restore options] – select [Overwrite the existing database] as per screen shot above
Remove Tick – is it has one in it
Try first to see if this will work without Tick in box if you get error place tick in box
(go back to see to Files tab and make sure it still says the correct “File Name” to restore too)
Page 6 of 7
Version 2017
© PCSchool - User Guide
Restoring a SQL database
Once you have checked your database
Select OK (this it will overwrite the existing database)
You will get a message when complete as per example:
Page 7 of 7
Version 2017
Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertising