Professional Documents
Culture Documents
Before deploying SQL Server 2012, you need to prepare for the
installation. Preparing for an installation involves determining the
present requirements and planning for the future. This enables you to
estimate the load on the server and provides a way to implement a
scalable architecture that meets the performance requirements.
Platform Components
• SQL Server 2012 involves a number of components that are used to
store, convert, analyze, and report data.
• While some of these components are new in SQL Server 2012,
others have minor and major enhancements.
Analysis Services Supports quick data analysis and data mining operations on
cleaned and formatted data.
Master Data Services Provides master data management capabilities to deal with
changes in master data.
SQL Server Management Provides an integrated interface for managing and querying SQL
Studio Server databases.
SQL Server Profiler Enables you to profile queries, identify performance issues, and
optimize queries to enhance performance.
Component Description
Scalability Methods
• Scalability is a factor that determines the performance of
applications when their capacity is increased by increasing the
number of resources the server uses.
• There are two scalability methods that are given in the following list:
Scale up: Involves adding resources such as memory, processors, and
storage to a server to increase the capacity at which it runs.
Scale out: Involves adding hardware to distribute load and increase the
capabilities of each server in the setup.
Select the components that you want to install and determine the servers
on which you want to install them.
Consider other aspects such as network speed and bandwidth and security
requirements.
The default instance is the default Named instances are additional instances that you
installation of the database engine can set up on the same system on which you
that is set up when SQL Server is installed the default instance.
installed.
The default instance is always named You can specify a custom name for a named
“MSSQLSERVER” and is accessible instance and refer to it using that name. If you
by either directly using the machine named an instance as “INSTANCE1,” you can refer
name of the system for remote access to it as “SERVER1\INSTANCE1.”
or by using a period to refer to it
locally.
Copyright © 2015 Logical Operations, Inc. All rights reserved. OV 1 - 12
Overview of SQL Server Features (Contd.)
Scenario
You are the database administrator at Adventure Works Cycles. Before
setting up the environment, you like to test your understanding on the
SQL Server features.
Drives
• Drives are the physical devices on which data in SQL Server
databases is stored.
• The amount of storage capacity you require depends on the number
and size of the databases.
• In addition to the databases, space is required to store indexes,
system files, work spaces, virtual memory, and log files.
• You also need to consider allocating space for backups.
Copyright © 2015 Logical Operations, Inc. All rights reserved. OV 1 - 17
Create Filegroups and Partitions (Contd.)
Drives (Contd.)
• Some of the best practices for designing storage using drives are
given in the following list:
Analyze the workload and estimating the number of read and write operations.
Files
• Files store the data in SQL Server databases.
• SQL Server uses three types of files:
– Primary data files: Serves as the starting point of a database and
points to other files those constitute the database. Primary data files
have the extension .mdf.
– Secondary files: Comprises of all the data files other than the primary
data files in a database. They have the extension .ndf.
– Log files: Contains log information necessary to restore a database. A
database must have at least one log file. Log files have the extension
.ldf.
Filegroups
• Filegroups are collections of files that are organized based on
storage allocation and administration considerations.
• They allow database administrators to manage the set of files of a
database on different drives.
• SQL Server uses two types of filegroups:
– Primary filegroup: Contains the primary data file and other files that
are not assigned to any other filegroup.
– User-defined filegroup: Contains secondary data files. You can
designate a user-defined filegroup as the default filegroup.
Filegroups (Contd.)
• The following figure depicts how a database is stored in two drives
that belong to one filegroup.
Partitions
• Partitions form the basic unit of organization in the physical
implementation of tables and indexes.
• Partitioning distributes tables and indexes across different
filegroups.
• It enables you to manage subsets of data by mapping groups of
table rows to individual partitions.
• By default, tables in SQL Server are stored in a single partition.
• However, as the number of rows in a table increases, the number of
transactions also increases leading to degradation in database
performance.
• Partitioning helps enhance database performance by splitting large
tables into multiple partitions based on usage patterns.
Partitions (Contd.)
• The following figure depicts how partitions enable you to manage
subsets of data.
Scenario
As the database administrator in a bicycle manufacturing company
named Adventure Works Cycles, you are asked to create a Sales
database for Adventure Works Cycles. Because you expect this
database to contain several tables with hundreds of rows, you expect
huge volumes of transactions. To improve query performance you wish
to distribute query load across multiple files and drives for certain parts
of the database. To achieve this, you decide to add multiple files and
place them in a different file group so that the load is distributed.
Scenario
You have planned to create a SalesOrders table on the SalesDB
database. You wish to store the data in the SalesOrders table into
multiple partitions. By analyzing the usage patterns, you found that the
current year's data is accessed most frequently, while the data of the
past years is rarely accessed. Therefore, you wish to partition the data
in such a way that sales orders are stored in three partitions. To
maximize storage and query performance, you have planned to store
each of these partitions in three different filegroups.
After being familiar with the SQL Server platform and tools, you
are ready to begin the SQL Server installation process. Careful
examination of the steps in the installation process will help you
select the right approach that suits your requirements and
complete the installation successfully.
Authentication Modes
• SQL Server uses two authentication modes to enable users to log in
to the server instance:
– Windows Authentication mode: Uses only Windows accounts or
Active Directory accounts to log into SQL Server.
– SQL Server and Windows Authentication mode: Uses both Windows
accounts or Active Directory accounts and SQL Server accounts to log
into SQL Server.
• The following figure depicts the authentication modes used by SQL
Server.
SSIS
• SQL Server Integration Services (SSIS) is an SQL Server
component that you can install along with the other SQL Server
components.
• When you select SSIS for installation, you can also install three
shared features:
– SQL Server Data Tools: Installs tools that can be used for designing
packages.
– Management Tools: Installs the SQL Server Management Studio.
– Client Tools SDK: Installs managed assemblies to program Integrated
Services.
Installation Methods
• You can install an SQL Server instance using one of the following
methods:
– Installing as a new instance: While installing SQL Server, if you select
the Database Engine for installation, you can install a new instance of
SQL Server.
– Enabling features on an existing instance: If you have already
installed an SQL Server instance but need to add a feature that you
missed installing earlier, you can easily do this by running the
Installation wizard again.
– Upgrading from an earlier version: Upgrading is the process of
updating the program files from a previous version to SQL Server 2012.
You can perform an in-place upgrade to SQL Server 2012 from the
following previous versions of SQL Server:
• SQL Server 2005 with SP4
• SQL Server 2008 with SP2
• SQL Server 2008R2 with SP1