• No results found

How To Manage A Database Server 2012

N/A
N/A
Protected

Academic year: 2021

Share "How To Manage A Database Server 2012"

Copied!
8
0
0

Loading.... (view fulltext now)

Full text

(1)

Ross

Mistry

With Shirmattie Seenarine and Kevin E. Kline

Microsoft

SQL

Server

2012

Management

and

Administration

(2)

Introduction 1

Part I: SQLServer 2012 Database

Engine

Administration and

Management Topics

1

Installing

or

Upgrading

the Database

Engine

to

SQLServer 2012 13

What's New for Installation with SQLServer2012? 14

Preplanningand Preparing a SQLServer 2012

Server Database Engine Installation 16

Gathering

Additional Information

Necessary

to Proceed 25

Installing a New Installation ofSQLServer 2012 31

Upgrading

the Database

Engine

to SQLServer 2012 40

Finalizingthe SQL Server 2012 Installation or Upgrade 51

Installing SQLServer 2012 onWindows Server Core 53

Managing

SQL Server 2012 Installations 62

Summary 64

Best Practices 64

2 Administeringand Configuringthe Database

Engine Settings

67

What's New for DBAs When Administering the

Database

Engine

on

SQL

Server 2012 68

Administering SQLServer 2012 Server Properties 68

Administering the SQL Server Database

Engine

Folders 87

Administering Database Properties 98

SQLServer Database

Engine Management

Tasks 114

Administering

the SQL Server Agent 119

Summary 123

Best Practices 124

3 Administering Storage, I/O,and Partitioning 127 What's New for DBAs WhenAdministering Storage

onSQL Server 2012 128

(3)

vi Microsoft®SQLServer 2012 Management and Administration

Designingand Administering Storage on SQL

Server 2012 140

Designingfor BLOB Storage 158

Designing and

Administrating

Partitionsin

SQL Server2012 164

DataCompression in SQL Server 2012 172

Summary 175

Best Practices 175

4 Creating

Packages

and

Transferring

Data On-Premise

andtothe Cloud 179

What's New in Integration Services forSQL Server2012 180

Optionsfor

Creating

Packages 181

Integration

Services Packages 182

Developing Packages 189

Enhancing

Packages

199

Deploying

and Running IntegrationServices

Packages

212

Transferring Data with

Integration

Services 221

Moving

Data to the Cloud 224

Summary

228

BestPractices 228

5

Managing

and Optimizing SQLServer 2012 Indexes 229 What's New for Indexes with SQL Server 2012 229

The Importance ofIndexes 230

How Indexes Work 230

General Index Characteristics 238 Index Design and Strategy 242

Administering Indexes 247

Configuring

Indexes for Maximum Performance 268

Summary

280

Best Practices 280

6

Backing

Up and

Restoring

SQLServer 2012 Databases 283 What's New forBackup and

Recovery

with SQL

Server 2012? 283

The Importance ofBackups 285

(4)

Backupand

Recovery

Impacton Other Database

Engine Features 324

Summary 330

Best Practices 330

Part II:

Hardening,

Auditing,and

Securing

SQLServer 2012

7 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 355

Leveraging 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 385

Security ManagementDDL 398

Administering

SQLServer Security 404

Contained Database Authentication 421

Summary

427

Best Practices 427

9

Encrypting

SQLServer 2012 Data andCommunications 429 What's New for Encryption with SQLServer 2012? 430

Encryption in SQL 431

Column Encryption 432

Securing

the Data

Storage

435

Extensible Key Management 444

Transparent Data

Encryption

446

(5)

viii Microsoft®SQL Server 2012 ManagementandAdministration

Using

Certificates 456

SQLServerand BitLocker Drive

Encryption

465

Configuring

BitLocker Drive Encryption on a

SQLServer

System

469

Summary 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 490

Managing AlwaysOn Availability Groups 509

Monitoringand Troubleshooting AlwaysOn

Availability Groups 520

Summary

525

BestPractices 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

a

Single-Instance

SQL Server 2012

FailoverCluster 544

Implementinga Multiple-Instance SQLServer 2012

Failover Cluster 564

Multi-subnet SQLServer 2012 FailoverCluster Overview 568

ImplementingMulti-subnet

SQL

Server 2012

Failover Cluster 571

Managing

FailoverClusters from a

SQL

Server 2012

Perspective 574

Verifying

the Status ofClustered Service and

Applications, Nodes,

Storage,

and Networks 574

Managing Failover Clusters from aWindows Server

(6)

Summary

Best Practices

12 Implementing and ManagingDatabase Mirroring

SQL Server 2012 Database MirroringOverview

Combining

Database Mirroring withOther

SQL

Server 2012 Technologies

Implementing

a Database MirroringSession

Managing a Database MirroringSession

Monitoringand Troubleshootinga Database

Mirroring

Session

Summary

Best Practices

13 Implementingand Managing Replication

SQL

Server 2012

Replication

Essentials

Implementing SQLServerReplication Managing SQLServer 2012 Replication

Monitoringand Troubleshooting SQL Server Replication

Summary

Best Practices

Part IV: PerformanceTuning,

Monitoring, Troubleshooting,

and Maintenance

14 PerformanceTuningand Troubleshooting SQLServer 2012 Platform

Troubleshooting

and Optimization

Database 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 System

The Data Collector and the Management Data Warehouse

(7)

X

Creating Operators and Sending Email Alerts 763

Usingthe Windows Server 2008 R2 Performance

Monitoring

Tools 769

Additional 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

811

Policy-Based Management Concepts 813

Implementing Policy-Based

Management

819

Monitoringand 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,and

Scenarios 841

Implementing

and Configuring Resource Governor 845

Creatinga Workload Group 852

Understanding Default Transact-SQL Syntax with

Resource Governor 858

Managing Resource Governor 860

Monitoring Resource Governor 862

Summary

867

(8)

19 Consolidation, Virtualization,and Private Clouds 869

Understanding

Consolidation, Virtualization,

and Private Cloud

Strategies

870

PlanningYourImplementation ofHyper-V 878 Installation ofthe MicrosoftHyper-V Server Role 883

Becoming Familiar with the Hyper-V Administrative

Console 886

Installing

a

SQL

Server 2012 Guest

Operating

System Session 889

Modifying

SQLServer 2012 Guest Session

Configuration

Settings

893

Launchinga Hyper-V Guest Session 898

Using

Snapshotsof GuestOperating System Sessions 900

Optimizing SQL Server 2012 for Private Cloud 903

Summary 905

Best Practices 905

References

Related documents