Professional Documents
Culture Documents
KDSSG: Module 2: Installations
KDSSG: Module 2: Installations
Module 2: Installations
(Zero To Hero SQL Server Database
Administration)
Contents:
1) Installation Basics
2) Prerequisites of SQL Server Installation
3) SQL Server 2005
§ Hardware and Software requirements
§ SQL Server 2005 Media Explained
§ Step by Step Installation
§ Unattended Installation
§ Troubleshooting Failed Installation
4) SQL Server 2008/2008R2 Installation
§ Hardware and Software requirements
§ SQL Server 2008/2008R2 Media Explained
§ Step by Step Installation
5) SQL Server 2012/2014 Installation
§ Hardware and Software requirements
§ SQL Server 2012/2014 Media Explained
§ Step by Step Installation
§ Troubleshooting Failed Installation (2008R2/2012/2014)
§ Unattended Installation (2008R2/2012/2014)
6) SQL Server 2016 Installation Enhancements
7) Service Packs, Cumulative Updates and Hotfixes
8) Slipstream (Simple and Advanced)
9) SYSPREP (Process and Explanation)
10) SQL Server 2012/2014 Installation through PowerShell
01. Installation Basics
Hardware/Software Platforms
Hardware and Software work collaboratively to ensure that overall system functions with
optimal performance. Any system operates in three layers
A CPU with a 32-bit register, for example, has a ceiling of 232 addresses within the register and
is thus limited to accessing 4GB of RAM.
(232 bytes= 4294967296 bytes = 4194304KB = 4096MB = 4GB)
A CPU with a 64-bit register, for example, has a ceiling of 264 addresses within the register and
is huge address space of upto 16EiB Exbibyte i.e. ~16EB.
(264 bytes= 18,446,744,073,709,551,616 bytes = 16 Exbibyte = ~16 ExaByte)
Practically 64-bit processor can support upto 7-8TB of RAM.
01. Installation Basics
Compatibility chart for all layers
Compatibility chart below explains 32-bit and 64-bit CPU/OS and Application levels.
01. Installation Basics
Storage Essentials (Bytes to Bronto Byte)
Tera Byte Peta Byte Exa Byte Zetta Byte Yotta Byte Bronto Byte
Operating System – OS minimum patch level (i.e. SP1, SP2, SP3 or SP4)
(Patch)
Dotnet Framework – Validating dotnet framework version for SQL Server version.
Windows Installer – Windows Installer version requirement for SQL Server version.
Windows PowerShell – Windows Installer version requirement for SQL Server version.
Internet Information Server – IIS requirement if SQL Server Reporting Services is installed.
02. Prerequisites of SQL Server Installation
Desktop/Server Operating Systems
SQL Server will be installed on operating systems that are compatible with the respective
version of SQL Server. Listed are different versions of Windows Operating Systems both
Server and Desktop Operating Systems.
If SQL Server is installed on Windows 2000 minimum SP4 patching is needed, if installed on
Windows 2003 minimum SP1 patching is needed.
02. Prerequisites of SQL Server Installation
Desktop/Server Operating Systems
To find OS information use the command (msinfo32), which will fetch entire system
information.
Start -> Run -> msinfo32
02. Prerequisites of SQL Server Installation
.NET Framework
A programming infrastructure created by Microsoft for building, deploying, and running
applications and services that use .NET technologies, such as desktop applications and Web
services.
.NET Framework
Windows uses MMC (Microsoft Management Console) for all the appearance of windows
commands and before SQL Server 2005 it was all MMC. With SQL 2005 enhancements
related to visual interface was provided by .NET Framework 2.0
lusrmgr.msc
services.msc compmgmt.msc
02. Prerequisites of SQL Server Installation
.NET Framework Version History
02. Prerequisites of SQL Server Installation
.NET Framework current version
We can verify registry to get current version of Dotnet framework(s) installed in the
system.
To find windows installer in windows, we can fire below command, which will
display version of windows.
Command: msiexec
02. Prerequisites of SQL Server Installation
Windows Powershell
Windows PowerShell is a task automation and configuration management
framework from Microsoft, consisting of a command-line shell and associated
scripting language built on the .NET Framework.
02. Prerequisites of SQL Server Installation
Windows Powershell
Powershell Versions range from Version 1.0 to 5.0 (most recent version).
02. Prerequisites of SQL Server Installation
Windows Powershell
Advantages of Powershell is Automation.
02. Prerequisites of SQL Server Installation
IIS (Internet Information Services)
Internet Information Services (IIS, formerly Internet Information Server) is an
extensible WEB SERVER created by Microsoft for use with Windows NT family.
Servers and Tools are two directories. Using “Servers” instance installation can be
performed, using “Tools” the toolset (like client components, SSMS) can be
installed.
03. SQL Server 2005 Installation
SQL Server 2005 Media Explained
Servers and Tools are two directories. Using “Servers” instance installation can be
performed, using “Tools” the toolset (like client components, SSMS) can be
installed.
03. SQL Server 2005 Installation
SQL Server 2005 Media Explained
1033, redist and Setup are the three directories in media.
03. SQL Server 2005 Installation
SQL Server 2005 Media Explained
redist contains redistributable media like .Net Framework, Upgrade Advisor and
Windows Installer
03. SQL Server 2005 Installation
SQL Server 2005 Media Explained
Setup directory contains all the MSI/MSP and media related DLL files that needs
to be copied during instance installation.
03. SQL Server 2005 Installation
SQL Server 2005 Media Explained
Media contains below listed files.
INI Files: Initialization Files. It contains initialization parameters which can make
an Unattended installation possible. It contains parameters to install.
In a nutshell (MSP = MST + .CAB). A patch file (.MSP) contains MST (Transforms)
and CAB (Cabinet) files. The files in the patch could be patching existing files
which are part of the base installation.
03. SQL Server 2005 Installation
Installation Step-by-Step
Initiate SQL Server 2005 installation by invoking “setup.exe” file.
03. SQL Server 2005 Installation
Installation Step-by-Step
Accept license agreement (EULA – End Users License Agreement)
03. SQL Server 2005 Installation
Installation Step-by-Step
Click “Install” to install .NET Framework 2.0, Native Client & Setup Support Files.
These are supporting software for installation to complete successfully.
03. SQL Server 2005 Installation
Installation Step-by-Step
Click “Next” to progress to next screens.
03. SQL Server 2005 Installation
Installation Step-by-Step
Click “Next” to initiate progress to “System Configuration Checks” screen.
03. SQL Server 2005 Installation
Installation Step-by-Step
Click “Next” to initiate progress to “System Configuration Checks” screen.
03. SQL Server 2005 Installation
Installation Step-by-Step
If any configuration checks fail, then install the respective missing components.
For example if we get IIS warning, install IIS. Instructions are mentioned on how to
install IIS in IIS section of the document. All checks are successful after installing
IIS.
03. SQL Server 2005 Installation
Installation Step-by-Step
License screen, where we need to provide License Key, Name and Name of
organization and Name.
03. SQL Server 2005 Installation
Installation Step-by-Step
Select components “SQL Server Database Services” and “Workstation
components, Books Online and development tools”. Selection of components
would depend on the requirement of Application team.
Click “Advanced Tab”.
03. SQL Server 2005 Installation
Installation Step-by-Step
Database Services can be configured further to change path of “Shared Tools”.
Shared Tools contain tool specifics for all instances (sqlcmd, bcp, osql etc). Once
Shared Tools are configured the path cannot be changed.
Documentation can be skipped and sample databases can be excluded.Click Next
03. SQL Server 2005 Installation
Installation Step-by-Step
Default Instance or Named Instance can be selected.
03. SQL Server 2005 Installation
Installation Step-by-Step
Instance is a collection of Memory Structures and Background Processes.(Oracle)
Multiple copies of instance can reside in a machine max limit being 50.
03. SQL Server 2005 Installation
Installation Step-by-Step
An instance is either default(unnamed instance) or it is a named instance.
Default Instance doesn't need client to specify name of the instance when making
connection, instance name is referred by just computer name. There can be only
one default instance in a server.
Example: ComputerName
KDSSG
Where KDSSG is computer name and in turn the instance name.
Named Instance is identified by the network name of the computer plus the
instance name that we specify. When client makes a connection to named
instance they have to specify Server Name and the Instance Name.
Example: ComputerName\InstanceName
KDSSG\SQL2005
Where SQL2005 is name of instance and KDSSG is computer name.
03. SQL Server 2005 Installation
Installation Step-by-Step
Limitation for Instance Name:
https://msdn.microsoft.com/en-us/library/ms143531.aspx?f=255&MSPPError=-
2147217396
Unattended Installations
SQL Server 2005 can be installed in unattended mode from command prompt, we can specify
SETUP parameters at the command prompt, or we can use the /SETTINGS switch to load
Setup parameters from an .INI file.
Unattended Installations can be performed using Parameters in SETUP command (or) using
.INI file in /SETTINGS switch, but we cannot use both.
Unattended Installation in SQL Server 2005
SQL Server 2005 Installation Command with Inbuilt Service Accounts:
SQL Server databases have three types of files:
D:
cd D:\MyMedia\SQLServers\SQLServer2005\SQL Server x64\Servers
--Create the Service Accounts before proceeding with Installation in lusrmgr.msc or dsa.msc
depending on Local System/Domain.
D:
cd D:\MyMedia\SQLServers\SQLServer2005\SQL Server x64\Servers
D:
cd D:\MyMedia\SQLServers\SQLServer2005\SQL Server x64\Servers
Default.ini File:-
INSTANCENAME=KDSSG_SILENT2K5
ADDLOCAL=SQL_Engine,Client_Components,Connectivity,SQL_Tools90
SAPWD=Admin143$$
SQLACCOUNT=“KDP-PC\SQLSrvAct”
SQLPASSWORD=Admin143$$
AGTACCOUNT=“KDP-PC\SQLAgtAct”
AGTPASSWORD=Admin143$$
SQLBROWSERACCOUNT=“KDP-PC\SQLBrowserAct”
SQLBROWSERPASSWORD=Admin143$$
SECURITYMODE=SQL
Unattended Installation in SQL Server 2005
SQL Server 2005 Service Packs Unattended Installation:
Assuming media is present in D: Drive.
Open Command Prompt -> Start -> Run -> cmd