Vous êtes sur la page 1sur 17

Technical University of Moldova

Databases and knowlege

Laboratory Work 2

Install and configure SQL Server 2014

Author: Supervisor:
Botnari Nicolae Irina Cojanu

Chisinau 2016
1 Tasks

Task 1
Open Microsoft SQL Server Management Studio. Connect with sa login and then open the
server and find the Databases directory. Right click on this directory and select from the
submenu New Database.

New Database

1
Autogrowth/MaxSize

Also, there were added the secondary files with .ndf extension which are intended to store
and keep data on different sectors of the disk.

2
Setting the filegroup : click on Filegroup, in the row of the created file. A window is
displayed. Input the name of the group and click OK.

3
Task 2
Go to Databases, right click, select New Database and type the database name. Then in
the text field of the log file introduce the physical name.

Compatibility:
As we see, it is by default compatible with SQL Server 2014.Next, go to the user setting
for the created database. Go to the submenu General and select the browse button in
field Owner. A window will be displayed where, again, press on browse button, as in the
image below:
Select one of the users and press okay.

4
Task 3

In order to perform the Task 3, go to Maintenance Plan directory, right click on it and
select Maintenance Plan Wizard.

5
Click on Change. A new window is displayed. Set the time for some lately defined
instructions.

6
Press Next, then go to the list of tasks and choose Shrunk Database. The Figure 3.3
describes the above words.

7
After selecting the tasks, click next. The order of tasks displayed, but we only have one
chosen task. Click next.

8
Press Next and go to the Settings of the chosen Task. In the first field, input the database
created in Task 1. See the image 3.5:

Specify the configuration accoarding to the task requirements, as shown in the image
below:

Press next, then choose a location to store the information on the plan.

9
2 Task 4

The same steps that were performed in Task 3, are performed here, but with different
specifications. Open the wizard, and specify the configuration in accordance to the condition.

10
New Jobs Schedule

Press OK, then move to the next window, where the previous configuration can be visu-
alised.

11
According to the condition, choose the Tasks:

12
Next, go to the process order:

Folows to set all tasks. The next task is the one for rebuilding index.

13
Configure according to the condition of the task:

Configure the second Task:

Configure the third Task:

14
Finish the configuration:

Right click on the plan, and execute it. A window is displayed:


Open the file on the previously declared path and view the result:

15
3 Conclusion:

In this laboratory work Ive created two database with distinct configurations and an-
alyzed the created files. Ive set the maintenance plans,analyzed the tasks, which were set
according to the exercises condition.

16