0% found this document useful (0 votes)
36 views

Lab 3 DBS - 082724

Lab manual

Uploaded by

umerabid253
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Lab 3 DBS - 082724

Lab manual

Uploaded by

umerabid253
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 18

Contents

Part 1- Installing the SQL Server......................................................................................................................................3


Part 2- Answering the SQL Questions.............................................................................................................................17
Q1) what is SQL Server?..............................................................................................................................................17
Components of SQL..................................................................................................................................................17
Types of SQL Server.................................................................................................................................................17
Q2) How many instances are available in SQL? Difference between them..............................................................17
Single Instance...........................................................................................................................................................17
Multiple Instances.....................................................................................................................................................17
Q3) How many authentication modes are available in SQL Server? Which one is best to use and why?..............17
1) Windows Authentication Mode........................................................................................................................17
2) Mixed Mode.......................................................................................................................................................18
Best Mode...................................................................................................................................................................18
Q4) what are SQL Server Analysis Services?.............................................................................................................18
SSAS Modals..............................................................................................................................................................18
Q5) what are SQL Server Reporting Services?...........................................................................................................18
Types of SSRS reports..............................................................................................................................................18
Advantages of using SSRS........................................................................................................................................18
Disadvantages of using SSRS....................................................................................................................................19

CS – 2102 Database Systems 1|Page


Part 1- Installing the SQL Server

1. Open the folder where the setup of SQL Server is present and right click the setup and run it as
administrator.

2. Now, a new dialog box is opened. Select the installation.

CS – 2102 Database Systems 2|Page


3. In Installation, click on “New SQL Server stand-alone installation or add features to an existing
installation.

4. Now, a new dialog box is opened. Product key is already inserted, so click on next.

CS – 2102 Database Systems 3|Page


5. In License Terms, check “I accept the license terms” box and click on next.

6. After the license terms, the global rules are checked. After completion, click on next.

CS – 2102 Database Systems 4|Page


7. After updating the product, the setup files are installed.

8. Now Install rules are checked.

CS – 2102 Database Systems 5|Page


9. In Setup Role, Check the “SQL Server Feature Installation” and click on next.

10. In Feature Selection, select all the features and wait.

CS – 2102 Database Systems 6|Page


11. Now Feature Rules are checked. In this case “Microsoft .NET Framework 3.5 Service Pack 1” is
failed.

CS – 2102 Database Systems 7|Page


12. So, go to the “Turn Windows Features Turn On or off” and check the mark on “Microsoft .NET
Framework 3.5 Service Pack 1”. If it is not installed, make sure you are connected to internet and
update it. After that, the changes will be made and setup will be proceed. Then, click on next.

CS – 2102 Database Systems 8|Page


13. In Instance Configuration, select the “Named Instance” as your name i.e. “UMER_ABID” and click
on next.

14. In Server Configuration, click on next.

CS – 2102 Database Systems 9|Page


15. In Database Engine Configuration, select the “Windows Authentication Mode” and add the current
user. Then click on next.

16. In Analysis Service Configuration, select the “Multidimensional and Data Mining Mode” and also
add the current user. After that, click on next.

CS – 2102 Database Systems 10 | P a g e


17. In Reporting Services Configuration, select the “Install and configure” and then click on next.

18. In Distributed Replay Controller, add the current user and move next.

CS – 2102 Database Systems 11 | P a g e


19. In Distributed Replay Client, Click on next.

20. After the feature configuration rules are checked, click on next.

CS – 2102 Database Systems 12 | P a g e


21. Now the setup is ready to install. Just click on Install.

22. The installation is in progress. Wait for its completion.

CS – 2102 Database Systems 13 | P a g e


23. The SQL Server is completed successfully with product updates. Now you can close the dialog box
and open the SQL Server.

24. Below is the interface of MS SQL Server 2014.

CS – 2102 Database Systems 14 | P a g e


CS – 2102 Database Systems 15 | P a g e
Part 2- Answering the SQL Questions
Q1) what is SQL Server?
SQL Server is a relational database management system (RDBMS) developed by Microsoft. As a database
server, it is a software product with the primary function of storing and retrieving data as requested by other
software applications which may run either on the same computer or on another computer across a network.
Components of SQL

 Database Engine
 SQLOS

Types of SQL Server

 Analysis Services (SSAS)

 Integration Services (SSIS)

 Reporting Services (SSRS)

 SQL Server Management Studio (SSMS)

 SQL Server Data Tools (SSDT)

 Azure Data Studio

Q2) How many instances are available in SQL? Difference between them.
There are two types of SQL instances:

 Single Instance

 Multiple Instances

Single Instance
A single instance database consists of the following key components: DBMS Software, such as IBM DB2,
Oracle DBMS, MS SQL Server, or Sybase Adaptive Server Enterprise (ASE), that is used to store and process
data. Hardware node, a host that is available for allocation to a database.
Multiple Instances
Multiple instances allows us to run multiple applications on a single machine. It provides a great benefit of
server consolidation.

Q3) How many authentication modes are available in SQL Server? Which one is best to use
and why?
SQL Server supports two authentication modes:
1. Windows Authentication Mode
2. Mixed Mode

CS – 2102 Database Systems 16 | P a g e


1) Windows Authentication Mode
It is default, and is often referred to as integrated security because this SQL Server security model is tightly
integrated with windows. Specific windows user and group accounts are trusted to log in to SQL Server.
Windows users who have already been authenticated do not have to present additional credentials.
2) Mixed Mode
Mixed mode supports authentication both by Windows and by SQL Server. User name and password pairs
are maintained within SQL Server.
Best Mode
Windows authentication is best and reliable because windows authentication mode uses a series of
encrypted messages to authenticate users in SQL Server. When SQL Server logins are used, SQL Server
login names and encrypted passwords are passed across the network, which makes them secure. Windows
Authentication mode enables Windows Authentication and disables SQL Server Authentication. Mixed
mode enables both Windows Authentication and SQL Server Authentication. Windows Authentication is
always available and cannot be disabled.

Q4) what are SQL Server Analysis Services?


SQL Server Analysis Service (SSAS) is MS SQL Server’s Analysis Services which is an online analytical
processing (OLAP), data mining, and reporting tool used in Business Intelligence to make data work for end
users. Microsoft has included a number of services in SQL Server related to business intelligence and data
warehousing.
SSAS Modals
There are two models in SSAS:
 Tabular model in SSAS
 Multidimensional model in SSAS
1) Tabular Model in SSAS
Organization of data into relevant tables signifies a tabular model, which has a slack structure, used with data
compression technique.
2) Multidimensional Model in SSAS
Organization of data through a data cube is a multidimensional data model, which operates with a data
compression technique.

Q5) what are SQL Server Reporting Services?


SQL Server Reporting Services (SSRS) is a reporting software that allows you to produce formatted reports
with tables in the form of data, graph, images, and charts. These reports are hosted on a server that can be
executed any time using parameters defined by the users. It is a part of MS SQL Server Services suite.
Types of SSRS reports
 Parameterized reports
 Linked reports
 Snapshot reports
 Cached reports
 Drill down reports
 Drill through reports
 Sub reports

CS – 2102 Database Systems 17 | P a g e


Advantages of using SSRS
 It is faster and cheaper.
 No need for expensive specialist skills.
 Efficient reporting access to information that is residing in both MS SQL Server database and Oracle.
 Faster production of reports on both relational and cube data.
Disadvantages of using SSRS
 There is no print button. So if you want to print something you need to export pdf, excel, word or other
formats.
 All reports need parameters to be accepted by users.
 It is difficult to make changes in the custom code and debug expressions.
 Page header always creates extra spaces on every new page.

CS – 2102 Database Systems 18 | P a g e

You might also like