Database Tables  «Prev  Next»

Modify Database - Exercise

Create a database (course project, step 1)

Objective: Create the course-project database.

Exercise Scoring

This exercise is worth a total of 10 points. You will receive up to five points for submitting the correct Transact-SQL syntax required to create the database, and up to five points for submitting the correct Transact-SQL syntax required to modify the database to allow for additional storage.

Instructions

This exercise begins your work on the course project, which, if you recall from the first module of this course, involves building a timesheet database that enables you to track your time and bill your supervisor or clients accurately. As a first step, you need to create the database and then modify the default size parameter to allocate additional disk space to it. Follow these instructions to ensure your success:
  1. Write a Transact-SQL statement to create a database named "timesheet" with an initial database size of one megabyte and a transaction-log size of one megabyte. Use all the default file locations.

  1. Write a Transact-SQL statement to increase the size of the database to 10 megabytes.

Submitting the exercise

Once you've entered your responses into the text boxes, click the OK, I'm Done button to submit the exercise to a tutor. Remember that you must submit all your responses to this exercise at once.