2. INSTALLATION & CONFIGURATION TOPICS
Installation of SQL Server Instances.
Planning Installation.
Installation
Install an Instance
Command Line Install
Configuration File Install
Installation of Features.
Hardware Requirements
Software Requirements
Planning For Storage & Growth
Benchmarking SQL Server
Reporting Services Native
Analysis Services
Reporting Services Native or SharePoint
Configure SQL Server Instances.
Manage & Configure Databases.
3. PLANNING AN SQL SERVER INSTANCE
OS
Requirements
Software
Processor
Requirements
Hard Disk
Memory
4. CRITERIA OF RESOURCES
Criteria's are based on
The Edition of SQL Server
The bit depth of SQL Server
X64
X86
Enterprise
Developer
BI
Editions
Express/Express
+ tools
Standard
Web
5. MAIN POINTS
X64 Versions of SQL 2012 supports only x64 OS
only
X86 Versions of SQL 2012 supports both x64/x86
OS’s
OS Service Pack level is also important
Major OS Supports
Windows Server 2012
Windows Server 2008 R2 SP1
Windows Server 2008 SP2
Windows Vista SP2
Windows 7 SP1
Windows Server 2003 is not Supported
6. DEVELOPER/ EXPRESS / EXPRESS WITH
ADVANCED SERVICES / EXPRESS WITH
ADVANCED TOOLS
Server 2008R2
Enterprise/ DC/
Standard/
Foundation/
Web
Windows Vista
SP2 Ultimate/
Enterprise/
Business/Home
Premium/Home
Basic
Developer/
Express/
Express With
Advanced tools
/Express with
advanced
Services
Windows 7 SP1
Ultimate
/Professional/
Home Premium/
Basic
Server 2008 DC/
Enterprise/ Std/
Web
7. SQL S. STANDARD
Windows Server
2008 R2 SP1
Datacenter,
Enterprise,
Standard,
Foundation, Web
Windows Vista SP2
Ultimate /
Enterprise
/Business
SQL
Server
Standard
Windows 7 SP1
Ultimate,
Enterprise,
Professional
Windows Server
2008
SP2DC/Enterprise/
Standard/ Web
8. SQL S. ENTERPRISE/ BI / WEB
Windows Server
2008R2
Enterprise, DC,
Standard, Web
SQL S.
Enterprise/BI/Web
Windows Server
2008 SP2
Enterprise/ DC/
Standard/ Web
9. PROCESSOR & RAM REQUIREMENTS (X64) –
ENTERPRISE/BI/WEB/STANDARD/DEVELOPER
Processor Types
Intel
Intel Xeon with EM64T Support
Intel P4 with EM64T
AMD
AMD Opteron
AMD Athlon 64T
Speed
Min 1.4 GHz
Recommended 2GHz
RAM
Min 1Gb
Recommended 4Gb or more
10. PROCESSOR & RAM REQUIREMENTS (X64) –
EXPRESS/EXPRESS WITH TOOLS/EXPRESS WITH
ADVANCED SERVICES
Same Processor Requirements
RAM
Min 512Mb
1Gb Recommended
11. PROCESSOR & RAM REQUIREMENTS (X86) –
ENTERPRISE/BI/WEB/STANDARD/DEVELOPER
P3 Compatible or Newer version
Processor
Min – 1GHz
Recommended 2GHz
RAM
Min 1Gb
Recommended – 4Gb or more
12. PROCESSOR & RAM REQUIREMENTS (X86) –
EXPRESS/EXPRESS WITH TOOLS/ EXPRESS WITH
ADVANCED SERVICES
Same as above
RAM
Min 512Mb
Recommended 1Gb
13. HARD DISK REQUIREMENTS
Database Engine/Full
Text Search/Replication
•811Mb
Analysis Services
•345Mb
Client Components
•1823Mb
Integration Services
•591Mb
Master Data Services
•243Mb
Reporting Services &
Report Manager
•304Mb
14. SOFTWARE REQUIREMENTS &
VIRTUALIZATION
.Net Framework 3.5 SP1
.Net Framework 4.0
IE 7 or above
Windows Power Shell 2.0
Virtualization
Hyper-v on Windows Server 2008R2 SP1 or Windows
Server 2008 SP2
15. CAPACITY CONSTRAINTS IN SQL SERVER
2012
Database Size < 524272 Terabytes
Maximum Data File Size < 16 Terabytes
Maximum Number of Instances 32767
Maximum 16 Columns per Primary Key
Maximum 253 Foreign Key References Per table
Maximum 32767 Connections Per instance
50 instances of Database Engine on a host
25 Instances of Database Engine on host if peer
to peer replication is used.
16. SELECTION OF FEATURES
Instance Features
Can operate Side by side
Act as separate instances of SQL Server
Shared Features
Shared among Instances
Need to install only once
17. INSTANCE FEATURES
Data Quality Services
Full Text Search/Semantic
Extractions for Search
Replication
Database Engine Services
Analysis Services
Reporting
Services Native
19. SCALE UP VS. SCALE OUT
Scale Out
Increase
capacity by
using
multiple
instances of
SQL
SERVER
Peer to
Peer
replication/
Always on
Availability
groups
Scalability – How well application
users increased resources to increase
capacity.
20. DATABASE GROWTH
Database size can be fixed / auto grow
Fixed databases minimize file fragmentation
Auautogrowth leads to file fragmentation.
Sp_spaceused to query space allocation in DB
Can Decrease the size by auto shrink property
Autoshrink leads to index fragmentation
Also can use dbccshrinkfile/dbccshrinkdatabase
Both require membership sysadmin fixed server
role or db_owner
Cant make a DB smaller than the initially
specified size.
21. DESIGN OF STORAGE
Primary
Secondary
Contain startup information &
pointers
Optional
Store Objects & Data
Tx Log
Store Data
Tx information
Change Vectors
Every Database has a file
..ndf extension
.mdf ext
Spead across disk to improve
performance
.ldf ext
Always in primary file group
Can be in a primary or
Secondary file group
22. MSA VS. VIRTUAL ACCOUNTS
Managed
Service Account
(MSA)
Virtual Account
/ Managed
Local Account
Domain managed
Account
Local Accounts
Pw managed by
domain controller
Can access domain in
network environment
Use a $ prefix
(Contos/Ms$)
Pw not required
Service Principal
registered under
Active Directory
NT
Service/Servicename
23. WINDOWS & SERVICE LEVEL SECURITY
Windows Vista/
Windows
Server 2008
Network Service
•DE
•Agent
•Analysis
•SSIS
•RPT Service
•DRC
•DR Client
Local Service
• SQL Browser
• FD Launcher
Local system
•SQL S VSS Writer
24. WINDOWS & SERVICE LEVEL SECURITY
Windows 7 /
Windows
Server 2008 R2
Managed
Service Account
Virtual Account
/ Managed
Local Account
25. MSA VS. VIRTUAL ACCOUNTS (WINDOWS
7 & WINDOWS SERVER 20088 R2)
MSA / Local
Service
Account
Database
Engine
SSIS
Integration
Service
FD Launcher
DRC / Dis
Replay Client
SQL Server
Agent
Local System
SQL S.
Browser
Local Service
SQL S. VSS
Writer
26. INSTALL SQL SERVER ON A DOMAIN
CONTROLLER
Not Recommended by Microsoft
SQL S. in a domain controller can’t run under a
local service account
Member Server with SQL S. Can’t be promoted to
a domain controller
Can’t demote a SQL S. with domain controller as
a member server
In a RODC sql server cant create necessary
accounts and groups then installation fails.
27. CORE MODE INSTALLATION
SQL S. can be installed on Windows Server
2008r2 sp1 Core version
Osedtions Datacenter , Enterprise, Web &
Standard are supported
29. CORE MODE INSTALLATION FEATURES
SUPPORTED
DE
Integration
Service
Replication
Core
Mode
Support
Client tools
connectivity
Full Text
Search
Analysis
Services
30. BENCHMARKING SQL SERVER
Prior to Installing SQL Server DBA must perform an
Benchmarking process
Validate the Server Resources against the
Requirements of the Installation
SQLIO is tool dtermine the capacity of the IO
Subsystem
Measures
Measure I/O per/sec
Throughput Mb/sec
Latency
By reading & writing files of different sizes
Saturation point can be identified by increaseing the load
SQLIOSIM – is included in SQL 2012 instance
SQLIOSIM perform similar task it replaces
SQLIOStress utility in earlier versions of SQL Server