06_FFI_Database_Admin_Exercise
06_FFI_Database_Admin_Exercise
Database Administration - 1 of 13
Database Administration Exercises
1.3 In the Server pull-down menu, select Create Database. Select FFI.
A progress bar and giant black DOS window will appear. Do not close these windows while the
database is created.
Database Administration - 2 of 13
Database Administration Exercises
1.5 Expand the tree on the left and highlight your new database. Review its
properties in the right-hand pane.
Database Administration - 3 of 13
Database Administration Exercises
Database Administration - 4 of 13
Database Administration Exercises
2.3 Enter a name and password for the new user, and click Save.
NOTE: Select a password that you can easily remember, since it cannot be retrieved if it is
forgotten.
2.4 To add a Role for the new user select “FFI_training” in the tree view of the
Database Manager and click Add Role in the Database pull-down menu.
Database Administration - 5 of 13
Database Administration Exercises
2.5 Enter the name of the user and select the role “Manager” in the pull-down listing.
Click Save.
2.6 Addition of the user's new role is confirmed. Click OK to close the confirmation
window.
Database Administration - 6 of 13
Database Administration Exercises
Database Administration - 7 of 13
Database Administration Exercises
3.3 After a moment or two, a confirmation box opens. Note the name of the backup
file and click OK.
NOTE: The default location for backup files is C:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\Backup.
Database Administration - 8 of 13
Database Administration Exercises
4.2 The Database Restore window opens. Click on the Browse button and navigate
to the database backup file location:
C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup.
Database Administration - 9 of 13
Database Administration Exercises
Note: Make sure you have selected the Database restoration location shown above.
Database Administration - 10 of 13
Database Administration Exercises
The FFI_training database is again listed in the Database Manager tree view. Its new
creation date is the date of the backup file used in the restoration.
Database Administration - 11 of 13
Database Administration Exercises
Notes
Deleting a database
You can delete a database in the FFI Database Administration module by selecting
Delete Database on the Server pull down menu. Use this with caution as deleted
databases CANNOT be restored. Only backup databases can be restored. Backup your
data often!
Database Administration - 12 of 13
Database Administration Exercises
from a backup) of the master database cannot be moved back to the master and will be
lost. This means that the only way users can share an FFI database is to be connected
via an intranet. The PDA is the only provision for electronic field data collection.
However, if the server hosting the FFI database is a portable computer, it can be taken
off-line and into the field and may be used for field data collection. During this time,
office-bound computers may use a throw-away copy of the database for analysis only.
Steps will vary depending on your situation, but will be similar to these:
• Install FFI on the new server.
• Install SQL Server on the new server.
• Copy all of the FFI backup files to the folder C:\Program Files\Microsoft SQL
Server\MSSQL.1\MSSQL\Backup on the new server.
• Restore all databases from the backups.
• If the old server is still running, delete all of the old databases so that users will
not be confused about where their databases are.
• Possibly uninstall SQL Server from the old server.
• Ensure that all of the FFI computers that will be clients to the new server have
connectivity and are able to login to the databases.
• Communicate to users where their databases are now hosted.
Database Administration - 13 of 13