20765C 02

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 27

Module 2

Installing SQL Server


Module Overview

• Considerations for Installing SQL Server


• tempdb Files
• Installing SQL Server
• Automating Installation
Lesson 1: Considerations for Installing SQL
Server

• Minimum Hardware and Software Requirements


• Assessing CPU and Memory Requirements
• Storage I/O and Performance
• Assessing I/O by Using SQLIOSim
• Demonstration: Using SQLIOSim
• Assessing I/O by Using Diskspd
• Demonstration: Using Diskspd
• Virtual Servers and Containers
• Installing SQL Server on Linux
Minimum Hardware and Software Requirements

• Hardware requirements:
• Processors
• Memory
• Disk

• Software requirements:
• Operating system
• Prerequisite software
• General software requirements
Assessing CPU and Memory Requirements

• CPU:
• Utilization dependent on types of queries running
• Test against realistic workloads

• Memory:
• Express Edition can only use 1 GB of memory
Storage I/O and Performance

• Plan and test your I/O requirements

• Considerations for storage:


• Dedicated versus SAN storage
• RAID systems
• Number of drives
• I/O caching configuration
Assessing I/O by Using SQLIOSim

• Used for reliability and integrity tests on disk


subsystems
• Attempts to accurately simulate the I/O patterns
of SQL Server
• Tests contain an element of randomness and
should not be used for performance tuning
Demonstration: Using SQLIOSim

In this demonstration, you will see:


• How to use the SQLIOSim graphical user
interface
Assessing I/O by Using Diskspd

• A general purpose load generator for I/O


subsystems
• Can be configured to mimic SQL Server I/O
• Suitable for use as a performance-tuning tool
• Replaces SQLIO
Demonstration: Using Diskspd

In this demonstration, you will see:


• How to run the Diskspd utility
Virtual Servers and Containers

• Virtualization:
• Virtual Machines
• Hyper-V

• Containerization:
• Containers
• Docker

• SQL Server Installation on VMs and Containers


• Cloud Virtualization and Containerization
Installing SQL Server on Linux

• Trends toward open-source systems


• Trends in virtualization
• SQL Server 2017 is the first version of SQL Server
to run on Linux and containers
Lesson 2: tempdb Files

• What Are tempdb Files?


• Modifying the Number of tempdb Files During
Installation
What Are tempdb Files?

• tempdb files are similar in architecture to data


files for other SQL Server databases
• The usage pattern for tempdb is unlike other
databases
• Holds temporary objects created by users or by the
database engine
• SQL Server recreates tempdb every time the
instance restarts
• tempdb is a shared resource, so its performance
can affect the performance of the whole system
Modifying the Number of tempdb Files During
Installation

• You can specify the following attributes of


tempdb files during installation of SQL Server:
• Location
• Number
• Initial size
• Autogrowth increment
Lesson 3: Installing SQL Server

• Options for Installing SQL Server


• Performing an Installation of SQL Server
• Performing Post-Installation Checks
Options for Installing SQL Server

• Installation wizard

• Command prompt

• Configuration file

• SysPrep
Performing an Installation of SQL Server

• Installation wizard:
• Product Updates
• Install Setup Files
• Install Rules
• Setup Role
• Feature Selection
• Instance Configuration
• Server Configuration
• <Component> Configuration
• Ready to Install
Performing Post-Installation Checks

• Verify that SQL Server services are running


• If necessary, view log file information at:
%ProgramFiles%\Microsoft SQL
Server\140\Setup Bootstrap\Log
Lesson 4: Automating Installation

• SQL Server Servicing


• Unattended Installation
• Demonstration: Reviewing an Unattended
Installation File
SQL Server Servicing

• SQL Server updates are released in several ways


• Hotfixes
• Cumulative Updates
• Service Packs

• SQL Server can receive automatic updates


directly from Microsoft Update
• In enterprise environments, updates should be tested
before being applied to production servers
Unattended Installation

• Install SQL Server from the command line:


Setup.exe /q /ACTION=CompleteImage /INSTANCENAME=MYNEWINST
/INSTANCEID=<MYINST> /SQLSVCACCOUNT="<DomainName\UserName>"
/SQLSVCPASSWORD="<StrongPassword>"
/SQLSYSADMINACCOUNTS="<DomainName\UserName>"
/AGTSVCACCOUNT="NT AUTHORITY\Network Service"
/IACCEPTSQLSERVERLICENSETERMS

• Upgrade SQL Server from the command line:


Setup.exe /q /ACTION=upgrade /INSTANCENAME=MSSQLSERVER
/RSUPGRADEDATABASEACCOUNT="<Provide a SQL Server logon account
that can connect to the report server during upgrade>"
/RSUPGRADEPASSWORD="<Provide a password for the report server upgrade
account>" /ISSVCAccount="NT Authority\Network Service"
/IACCEPTSQLSERVERLICENSETERMS
Demonstration: Reviewing an Unattended
Installation File

In this demonstration, you will review:


• An unattended installation file
Lab: Installing SQL Server

• Exercise 1: Preparing to Install SQL Server


• Exercise 2: Installing SQL Server
• Exercise 3: Perform Post-Installation Checks
• Exercise 4: Automating Installation

Logon Information
Virtual machine: 20765C-MIA-SQL
User name: ADVENTUREWORKS\Student
Password: Pa55w.rd

Estimated Time: 90 minutes


Lab Scenario

You have been tasked with creating a new instance


of SQL Server that will be used by the IT
department as a test server for new applications.
Lab Review

In this lab, you have:


• Installed and configured a SQL Server instance
• Edited an unattended installation file
Module Review and Takeaways

• Review Question(s)

You might also like