Ross
Mistry
With Shirmattie Seenarine and Kevin E. Kline
Microsoft
SQL
Server
2012
Management
and
Administration
Introduction 1
Part I: SQLServer 2012 Database
Engine
Administration andManagement Topics
1
Installing
orUpgrading
the DatabaseEngine
toSQLServer 2012 13
What's New for Installation with SQLServer2012? 14
Preplanningand Preparing a SQLServer 2012
Server Database Engine Installation 16
Gathering
Additional InformationNecessary
to Proceed 25Installing a New Installation ofSQLServer 2012 31
Upgrading
the DatabaseEngine
to SQLServer 2012 40Finalizingthe SQL Server 2012 Installation or Upgrade 51
Installing SQLServer 2012 onWindows Server Core 53
Managing
SQL Server 2012 Installations 62Summary 64
Best Practices 64
2 Administeringand Configuringthe Database
Engine Settings
67What's New for DBAs When Administering the
Database
Engine
onSQL
Server 2012 68Administering SQLServer 2012 Server Properties 68
Administering the SQL Server Database
Engine
Folders 87Administering Database Properties 98
SQLServer Database
Engine Management
Tasks 114Administering
the SQL Server Agent 119Summary 123
Best Practices 124
3 Administering Storage, I/O,and Partitioning 127 What's New for DBAs WhenAdministering Storage
onSQL Server 2012 128
vi Microsoft®SQLServer 2012 Management and Administration
Designingand Administering Storage on SQL
Server 2012 140
Designingfor BLOB Storage 158
Designing and
Administrating
PartitionsinSQL Server2012 164
DataCompression in SQL Server 2012 172
Summary 175
Best Practices 175
4 Creating
Packages
andTransferring
Data On-Premiseandtothe Cloud 179
What's New in Integration Services forSQL Server2012 180
Optionsfor
Creating
Packages 181Integration
Services Packages 182Developing Packages 189
Enhancing
Packages
199Deploying
and Running IntegrationServicesPackages
212Transferring Data with
Integration
Services 221Moving
Data to the Cloud 224Summary
228BestPractices 228
5
Managing
and Optimizing SQLServer 2012 Indexes 229 What's New for Indexes with SQL Server 2012 229The Importance ofIndexes 230
How Indexes Work 230
General Index Characteristics 238 Index Design and Strategy 242
Administering Indexes 247
Configuring
Indexes for Maximum Performance 268Summary
280Best Practices 280
6
Backing
Up andRestoring
SQLServer 2012 Databases 283 What's New forBackup andRecovery
with SQLServer 2012? 283
The Importance ofBackups 285
Backupand
Recovery
Impacton Other DatabaseEngine Features 324
Summary 330
Best Practices 330
Part II:
Hardening,
Auditing,andSecuring
SQLServer 20127 Hardeningand AuditingaSQL Server 2012 Implementation 335 What's New for HardeningandAuditing
SQL Server 2012 Implementation? 336 Windows andSQL Server Authentication 337
Using Configuration Tools to Hardenthe Installation 343
Hardening SQL Server Service Accounts 350
Installing
Service Packsand Critical Fixes 355Leveraging SQL ServerAuditing Strategies 357
Monitoring Events withSQL ServerAudit 359 Additional SQL Server Hardening Recommendations 373
Summary 379
Best Practices 380
8 Administering SQLServer 2012Securityand Authorization 383 What's New forSecurityand Authorization with
SQL Server 2012? 383
SQL
Server Security 385Security ManagementDDL 398
Administering
SQLServer Security 404Contained Database Authentication 421
Summary
427Best Practices 427
9
Encrypting
SQLServer 2012 Data andCommunications 429 What's New for Encryption with SQLServer 2012? 430Encryption in SQL 431
Column Encryption 432
Securing
the DataStorage
435Extensible Key Management 444
Transparent Data
Encryption
446viii Microsoft®SQL Server 2012 ManagementandAdministration
Using
Certificates 456SQLServerand BitLocker Drive
Encryption
465Configuring
BitLocker Drive Encryption on aSQLServer
System
469Summary 478
Best Practices 478
Part III: SQLServer 2012AlwaysOn High-Availability and Disaster
RecoveryAlternatives
10 Implementingand Managing AlwaysOn Availability Groups 483
SQL Server 2012AlwaysOn Availability GroupsOverview 484
Implementing AlwaysOn Availability
Groups 490Managing AlwaysOn Availability Groups 509
Monitoringand Troubleshooting AlwaysOn
Availability Groups 520
Summary
525BestPractices 526
11 Implementingand Managing AlwaysOn Failover
Cluster Instances 527
SQL Server 2012 AlwaysOn FailoverCluster
Instances Overview 527
What's New for SQLServer 2012 AlwaysOn
Failover Cluster Instances? 528 Additional Elementsof AlwaysOn Failover
Cluster Instances 537
Implementing
aSingle-Instance
SQL Server 2012FailoverCluster 544
Implementinga Multiple-Instance SQLServer 2012
Failover Cluster 564
Multi-subnet SQLServer 2012 FailoverCluster Overview 568
ImplementingMulti-subnet
SQL
Server 2012Failover Cluster 571
Managing
FailoverClusters from aSQL
Server 2012Perspective 574
Verifying
the Status ofClustered Service andApplications, Nodes,
Storage,
and Networks 574Managing Failover Clusters from aWindows Server
Summary
Best Practices
12 Implementing and ManagingDatabase Mirroring
SQL Server 2012 Database MirroringOverview
Combining
Database Mirroring withOtherSQL
Server 2012 TechnologiesImplementing
a Database MirroringSessionManaging a Database MirroringSession
Monitoringand Troubleshootinga Database
Mirroring
SessionSummary
Best Practices
13 Implementingand Managing Replication
SQL
Server 2012Replication
EssentialsImplementing SQLServerReplication Managing SQLServer 2012 Replication
Monitoringand Troubleshooting SQL Server Replication
Summary
Best Practices
Part IV: PerformanceTuning,
Monitoring, Troubleshooting,
and Maintenance14 PerformanceTuningand Troubleshooting SQLServer 2012 Platform
Troubleshooting
and OptimizationDatabase Troubleshootingand Optimization
Application Optimization and
Troubleshooting
IntroducingExtended Events to Troubleshoot SQL Server
Summary
Best Practices
15 Monitoring SQLServer 2012
What's New for Monitoring in SQLServer 2012?
Gaining Quick
Insight
into a SQL Server SystemThe Data Collector and the Management Data Warehouse
X
Creating Operators and Sending Email Alerts 763
Usingthe Windows Server 2008 R2 Performance
Monitoring
Tools 769Additional Tools to Monitor SQL Server 2012 776
Summary 777
Best Practices 777
16 SQL Server 2012 Maintenance Practices 779 What's New for Maintenance with SQL Server 2012? 779
Establishinga SQL Server Maintenance Plan 780
Creating a Maintenance Plan 792
Establishing Maintenance Schedules forSQLServer 805
Summary 807
Best Practices 807
Part V: Multi-Instance Management, Consolidation,and Private Clouds
17 Implementingand Managing Policy-Based Management 811 Introductionto
Policy-Based Management
811Policy-Based Management Concepts 813
Implementing Policy-Based
Management
819Monitoringand Enforcing Best Practices by Using
Policy-Based Management 830
Summary 836
Best Practices 836
18 Managing Workloads withResource Governor 839 What's New forResource Governor in SQLServer2012 840 Overviewof Resource Governor
Concepts,
Workflow,andScenarios 841
Implementing
and Configuring Resource Governor 845Creatinga Workload Group 852
Understanding Default Transact-SQL Syntax with
Resource Governor 858
Managing Resource Governor 860
Monitoring Resource Governor 862
Summary
86719 Consolidation, Virtualization,and Private Clouds 869
Understanding
Consolidation, Virtualization,and Private Cloud
Strategies
870PlanningYourImplementation ofHyper-V 878 Installation ofthe MicrosoftHyper-V Server Role 883
Becoming Familiar with the Hyper-V Administrative
Console 886
Installing
aSQL
Server 2012 GuestOperating
System Session 889
Modifying
SQLServer 2012 Guest SessionConfiguration
Settings
893Launchinga Hyper-V Guest Session 898
Using
Snapshotsof GuestOperating System Sessions 900Optimizing SQL Server 2012 for Private Cloud 903
Summary 905
Best Practices 905