Datacenter
MSSQL Database Training
Internal Use - Confidential of1136 © Copyright 2021 Dell Inc.
Overview
Introduction
What is SQL Server
History SQL Server
SQL Server Edition
Importance of SQL Server Instance
Summary
SQL Server Database : Create, Alter, Drop, Backup /
Restore
SQL Server Data Types
SQL Server
SQL Server Table: CREATE, ALTER, DROP
SQL Server DML (Insert, Update, Delete)
SQL Server Keys, Constraints and Indexes
Internal Use - Confidential of2136 © Copyright 2021 Dell Inc.
Introduction
• What is SQL Server?
• It is a software, developed by Microsoft, which is
implemented from the specification of RDBMS.
• It is platform dependent.
• It is both GUI and command based software.
• It supports SQL (SEQUEL) language which is an IBM
product, non-procedural, common database and case
insensitive language.
Internal Use - Confidential of3136 © Copyright 2021 Dell Inc.
• Usage of SQL Server
• To create databases.
• To maintain databases.
• To analyze the data through SQL Server Analysis
Services (SSAS).
• To generate reports through SQL Server Reporting
Services (SSRS).
• To carry out ETL operations through SQL Server
Integration Services (SSIS).
Internal Use - Confidential of4136 © Copyright 2021 Dell Inc.
Versions of SQL Server
Version Year Code Name
10.5 (2008 R2) 2010 Kilimanjaro
11.0 (2012) 2012 Denali
Hekaton (initially), SQL 14
12 (2014) 2014
(current)
2016 2016 Helsinki
2017 2017 vNext
2019 2019 Aris
2022 2022 Iron
Internal Use - Confidential of5136 © Copyright 2021 Dell Inc.
• Instance of SQL Server
• An instance is an installation of SQL Server.
• There are two types of instances in SQL Server a) Default b) Named.
• Only one default instance will be supported in one Server.
• Multiple named instances will be supported in one Server.
• Default instance will take the server name as Instance name.
• Default instance service name is MSSQLSERVER.
Internal Use - Confidential of6136 © Copyright 2021 Dell Inc.
•Enterprise − This is the top-end edition with a full feature set.
•Standard − This has less features than Enterprise, when there is no requirement of
advanced features.
•Workgroup − This is suitable for remote offices of a larger company.
•Web − This is designed for web applications.
•Developer − This is similar to Enterprise, but licensed to only one user for development,
testing and demo. It can be easily upgraded to Enterprise without reinstallation.
•Express − This is free entry level database. It can utilize only 1 CPU and 1 GB memory,
the maximum size of the database is 10 GB.
•Compact − This is free embedded database for mobile application development. The
maximum size of the database is 4 GB.
•Datacenter − The major change in new SQL Server 2008 R2 is Datacenter Edition. The
Datacenter edition has no memory limitation and offers support for more than 25 instances.
•Business Intelligence − Business Intelligence Edition is a new introduction in SQL Server
2012. This edition includes all the features in the Standard edition and support for advanced
BI features such as Power View and PowerPivot, but it lacks support for advanced
availability features like AlwaysOn Availability Groups and other online operations.
Internal Use - Confidential of7136 © Copyright 2021 Dell Inc.
MS SQL Server - Installation
SQL Server supports two types of installation
−
Standalone
Cluster based
Internal Use - Confidential of8136 © Copyright 2021 Dell Inc.
Physical Structure of a Database
• Physical Structure of a Database
• Each database consists of at least one data file and one transaction
log file
• These files are not shared with any other database.
• Transaction Log Files • The transaction log file resides in one or
more separate physical files from the data files and contains a series
of log records, • To maximize prestanda those files should be
distributed over a disk array
Internal Use - Confidential of9136 © Copyright 2021 Dell Inc.
SQL Server Authentication
• Authentication Modes
• Windows Authentication Mode (logged in user)
• SQL Server login account and password
• Mixed Mode (both the above)
• Roles, A database administrator uses roles to collect users
into a single unit against which to set permissions.
Internal Use - Confidential of
10136 © Copyright 2021 Dell Inc.
How to Install SQL Server
Here is a step by step process on how to install SQL in Windows
Step 1) Open the .exe file
Double click on “SQLServer2017-SSEI-Dev.exe”. Below screen
will appear with three options: Basic, Custom and Download files
You can as well mount the ISO if you have it
Internal Use - Confidential of
11136 © Copyright 2021 Dell Inc.
SELECT INSTALLATION TYPE
Internal Use - Confidential of
12136 © Copyright 2021 Dell Inc.
INSTALLATION CONTD
.
• Step 2) Choose the version
• Choose the basic version by clicking on the ‘Basic’
option, as it has all default configuration required to
learn MS SQL.
Internal Use - Confidential of
13136 © Copyright 2021 Dell Inc.
• Step 3) Accept the terms
• ‘Microsoft Server License Terms’ screen will appear.
Read the License Terms and then click ‘Accept.’
Internal Use - Confidential of
14136 © Copyright 2021 Dell Inc.
• Step 4) Choose the location
• Below ‘SQL server install location’ window will appear.
• The Default location is C:\Program Files\Microsoft
SQL Server.
• Optionally, we can also change the installation location
by clicking on Browse.3. Once the location is selected,
click the ‘Install’ button to start SQL installation
Windows 10.
Internal Use - Confidential of
15136 © Copyright 2021 Dell Inc.
Internal Use - Confidential of
16136 © Copyright 2021 Dell Inc.
1 Dell EMC Unity XT 880F
17 Internal©Use - Confidential
Copyright 2020 Dell Inc. of
17136 © Copyright 2021 Dell Inc.
Internal Use - Confidential of
18136 © Copyright 2021 Dell Inc.
INSTANCE INSTALLATION
• we need to choose the components for our installation. Suppose we want
to install a new instance of SQL Server Database Engine, we'll choose
Database Engine Services. Click Next to proceed.
Internal Use - Confidential of
19136 © Copyright 2021 Dell Inc.
In the next wizard, we will specify the name and instance ID to create the new
.instance of SQL Server. Leave the default and click on Next to proceed
Internal Use - Confidential of
20136 © Copyright 2021 Dell Inc.
The next wizard is the Server Configuration page, where we will
specify the service account and collation configuration. Here, we will
.set the startup type "Automatic" and click on Next to proceed
Internal Use - Confidential of
21136 © Copyright 2021 Dell Inc.
Database Engine Configuration
HERE WE WILL SPECIFY THE AUTHENTICATION SECURITY MODE,
ADMINISTRATORS, AND DATA DIRECTORIES. HERE WE WILL SELECT THE
FOLLOWING:
AUTHENTICATION MODE
CHOOSE MIXED MODE
ENTER A STRONG PASSWORD FOR THE SYSTEM ADMINISTRATOR ACCOUNT
SPECIFY SQL SERVER ADMINISTRATORS
ADD THE LOCAL ADMINISTRATOR ACCOUNT
CLICK ON NEXT TO PROCEED. THE INSTALLATION PROCESS BEGINS
Internal Use - Confidential of
22136 © Copyright 2021 Dell Inc.
Internal Use - Confidential of
23136 © Copyright 2021 Dell Inc.
Internal Use - Confidential of
24136 © Copyright 2021 Dell Inc.
SSMS –SQL SERVER MANAGEMENT STUDIO
• Microsoft SQL Server Management Studio is a software
application developed by Microsoft that is used for configuring,
managing, and administering all components within Microsoft
SQL Server. First launched with Microsoft SQL Server 2005, it is
the successor to the
Dell EMC Unity XT 380/380F, Enterprise
480/480F, 680/680F, 880/880F Manager in SQL 2000 or before
Designed for PERFORMANCE
Optimized for EFFICIENCY
Built for MULTI-CLOUD
1 Dell EMC Unity XT 880F
25 Internal©Use - Confidential
Copyright 2020 Dell Inc. of
25136 © Copyright 2021 Dell Inc.
b. SQL Server Database
• Next, from
a. Connect to SQL Server
the Connect menu under
• First, launch the the Object Explorer,
Microsoft SQL Server choose the Database
Management Studio Engine…
from the
Dell EMC UnityStart menu
XT 380/380F, 480/480F, 680/680F, 880/880F
Designed for PERFORMANCE
]1[
Optimized for EFFICIENCY
Built for MULTI-CLOUD ]2[
1 Dell EMC Unity XT 880F
26 Internal©Use - Confidential
Copyright 2020 Dell Inc. of
26136 © Copyright 2021 Dell Inc.
.b SQL Server Database - Conts
• If the connection is
established
successfully, then you
will see the
following Object
Explorer panel:
]3[
]4[
Internal Use - Confidential of
27136 © Copyright 2021 Dell Inc.
b. SQL Server Database - Conts
B. CREATE DATABASE SQL Server Management Studio .1
THERE ARE 2 WAYS TO CREATE DATABASE IN
SQL SERVER.
1.SQL Server Management
Studio
2.Transact-SQL ]1.1[
Internal Use - Confidential of
28136 © Copyright 2021 Dell Inc.
b. SQL Server Database - Conts
]1.2[
Internal Use - Confidential of
29136 © Copyright 2021 Dell Inc.
b. SQL Server Database - Conts
]1.3[
]Optional – For Advance Setting[ ]1.4[
Internal Use - Confidential of
30136 © Copyright 2021 Dell Inc.
• c. Alter Database
SQL Server Management Studio .1
• There are 2 ways to alter Database in SQL
server.
1. SQL Server Management Studio
2. Transact-SQL
Internal Use - Confidential of
31136 © Copyright 2021 Dell Inc.
Transact-SQL .2
:Syntax
ALTER DATABASE <Databse_name> MODIFY
NAME = <New Name>
:Query
ALTER DATABASE <Databse_name> MODIFY NAME
= <New Name>
Internal Use - Confidential of
32136 © Copyright 2021 Dell Inc.
SQL Server Management Studio .1
d. Delete Database
.There are 2 ways to Delete Database in SQL server
SQL Server Management Studio .1
.Transact-SQL .2
Internal Use - Confidential of
33136 © Copyright 2021 Dell Inc.
e. Backup /
Restore Database
Internal Use - Confidential of
34136 © Copyright 2021 Dell Inc.
Thank You
Internal Use - Confidential of
35136 © Copyright 2021 Dell Inc.