Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Buy Now $49.99
Standard view
Full view
of .
Look up keyword or section
Like this
4Activity

Table Of Contents

SQL SERVER 2012 ECOSYSTEM
NEW IMPORTANT FEATURES IN 2012
Production DBA
Development DBA
Business Intelligence DBA and Developer
SQL SERVER ARCHITECTURE
Database Files and Transaction Log
SQL Native Client
Standard System Databases
Schemas
Synonyms
Dynamic Management Objects
SQL Server 2012 Data Types
EDITIONS OF SQL SERVER
Edition Overview
Licensing
SUMMARY
Installing SQL Server 2012 Best Practices
PLANNING THE SYSTEM
Hardware Options
Software and Install Options
INSTALLING SQL SERVER
New Installs
Side-by-Side Installs
Upgrades
Unattended Installs
Attended Installations
INSTALLING ANALYSIS SERVICES
Multidimensional and Data Mining Mode (UDM mode)
Multidimensional and Data Mining Mode (UDM Mode)
Tabular Mode
Installing PowerPivot for SharePoint ❘ 43
INSTALLING POWERPIVOT FOR SHAREPOINT
BURNING IN THE SYSTEM
POST-INSTALL CONFIGURATION
Configuring SQL Server Settings for Performance
tempdb
Configuring SQL Server Settings for Security
Upgrading Reporting Services
Upgrading to 64-Bit
POST-UPGRADE CHECKS
Poor Query Performance After Upgrade
CONFIGURATION AND ADMINISTRATION TOOLS
Startup Parameters
Startup Stored Procedures
Partially Contained Databases
TROUBLESHOOTING TOOLS
Dedicated Administrator Connection
Rebuilding the System Databases
MANAGEMENT STUDIO
Reports
Configuring SQL Server in Management Studio
Filtering Objects
Error Logs
Activity Monitor
MONITORING PROCESSES IN T-SQL
sp_who and sp_who2
sys.dm_exec_connections
sys.dm_exec_sql_text
MULTISERVER MANAGEMENT
Central Management Servers and Server Groups
SQL Server Utility
TRACE FLAGS
GETTING HELP FROM SUPPORT
SQLDumper.exe
SQLDiag.exe
MAINTENANCE PLANS
Maintenance Plan Wizard
Maintenance Plan Designer
Automating SQL Server with SQL Server Agent ❘ 111
AUTOMATING SQL SERVER WITH SQL SERVER AGENT
Jobs
Schedules
Operators
Alerts
SQL SERVER AGENT SECURITY
Service Account
Access to SQL Agent
SQL Server Agent Proxies
CONFIGURING SQL SERVER AGENT
General Properties
Advanced Properties
Alert System Properties
Job System Properties
Connection Properties
History Properties
DATABASE MAIL
Architecture
Security
Configuration
Archiving
MULTISERVER ADMINISTRATION
Using Token Replacement
Event Forwarding
Using WMI
Multiserver Administration — Using Master and Target Servers
ASYNCHRONOUS MESSAGING
SQL Service Broker Overview
SQL Server Service Broker Versus Other Message Queues
CONFIGURING SQL SERVER SERVICE BROKER
Configuring SQL Server Service Broker ❘ 149
Enabling
Message Types
Contracts
Queues
Services
Routes
Priorities
Conversation Groups
USING SQL SERVER SERVICE BROKER
Sending Messages
Using SQL Server Service Broker ❘ 157
Receiving Messages
Sending Messages Between Databases
Sending Messages Between Instances
External Activation
INTRODUCTION TO THE CLR
SQL Server as a .NET Runtime Host
Application Domains
T-SQL versus CLR
Enabling CLR Integration
CREATING CLR ASSEMBLIES
The Non-Visual Studio Way
Using Microsoft SQL Server Data Tools
SECURING CLR
PERFORMANCE MONITORING
Windows System Monitor
SQL Profiler
Dynamic Management Views (DMVs)
CLR Integration Design Goals
AUTHENTICATION TYPES
SQL Authentication
Windows Authentication
SQL Versus Windows Authentication
AUTHORIZING SECURABLES
Server Securables
Database Securables
Permission Chains
Cross Database Permission Chains
ROW LEVEL SECURITY
CREATING SOLUTIONS AND PROJECTS
Creating a Connection
Creating a Project Query
POLICY-BASED MANAGEMENT
Policy-Based Management Overview
Policy-Based Management Step by Step
Scripting Policy-Based Management
Policy-Based Management Implementation
DDL TRIGGER SYNTAX
Database Triggers
Server Triggers
TRIGGER VIEWS
SCRIPTING OVERVIEW
sqlcmd
PowerShell
CREATING CHANGE SCRIPTS
DATA-TIER APPLICATIONS
SQL Server Data Tools
Version Tables
WHAT EVERY DBA NEEDS TO KNOW ABOUT PERFORMANCE
The Performance Tuning Cycle
Defining Good Performance
Focus on What’s Most Important
WHAT THE DEVELOPER DBA NEEDS TO KNOW ABOUT PERFORMANCE
Users
SQL Statements
What the Developer DBA Needs to Know About Performance ❘ 237
Data Usage Patterns
Robust Schema
WHAT THE PRODUCTION DBA NEEDS TO KNOW ABOUT PERFORMANCE
Optimizing the Server
Hardware Management
Cache
Hyper-threading
Multicore
System Architecture
MEMORY
Physical Memory
Physical Address Space
Virtual Memory Manager
The Page File
Page Faults
Network
Disks
Storage Considerations
Designing a Storage System
Large Storage System Considerations: SAN Systems
Server Configuration
Fragmentation
APPLICATION OPTIMIZATION
Defining a Workload
System Harmony Is the Goal
THE SILENT KILLER: I/O PROBLEMS
SQL Server I/O Process Model
Database File Placement
tempdb Considerations
TABLE AND INDEX PARTITIONING
Why Consider Partitioning?
Creating a Partition Function
Creating Filegroups
Creating a Partition Scheme
Creating Tables and Indexes
DATA COMPRESSION
Row Compression
Page Compression
Estimating Space Savings
Monitoring Data Compression
Data Compression Considerations
CPU CONSIDERATIONS
Cache Coherency
Af nity Mask
Max Degree of Parallelism (MAXDOP)
Af nity I/O Mask
MEMORY CONSIDERATIONS AND ENHANCEMENTS
Tuning SQL Server Memory
64-bit Versions of SQL Server 2012
Data Locality
Max Server Memory
Index Creation Memory Option
Minimum Memory per Query
RESOURCE GOVERNOR
The Basic Elements of Resource Governor
Using Resource Governor from SQL Server 2012 Management Studio
Monitoring Resource Governor
THE GOAL OF MONITORING
Determining Your Monitoring Objectives
Establishing a Baseline
Choosing the Appropriate Monitoring Tools ❘ 319
Comparing Current Metrics to the Baseline
CHOOSING THE APPROPRIATE MONITORING TOOLS
PERFORMANCE MONITOR
CPU Resource Counters
Disk Activity
Memory Usage
Performance Monitoring Tools
MONITORING EVENTS
The Default Trace
system_health Session
SQL Trace
Event Notifications
SQL Server Extended Events
MONITORING WITH DYNAMIC MANAGEMENT VIEWS AND FUNCTIONS
Server-scoped dynamic management views and functions
Database-scoped dynamic management views and functions
What’s Going on Inside SQL Server?
Viewing the Locking Information
Viewing Blocking Information
Index Usage in a Database
Indexes Not Used in a Database
View Queries Waiting for Memory Grants
Connected User Information
Filegroup Free Space
Query Plan and Query Text for Currently Running Queries
Bufer Pool Memory Usage
MONITORING LOGS
Monitoring the SQL Server Error Log
Management Data Warehouse ❘ 387
Monitoring the Windows Event Logs
MANAGEMENT DATA WAREHOUSE
System Data Collection Sets
Viewing Data Collected by the System Data Collection Sets
Creating Your Own Data Collection Set
Examining the Data You Collected
SQL Server Standard Reports ❘ 393
SQL SERVER STANDARD REPORTS
System Center Management Pack ❘ 395
SYSTEM CENTER MANAGEMENT PACK
SQL SERVER BEST PRACTICE ANALYZER
SYSTEM CENTER ADVISOR
PHYSICAL QUERY PROCESSING PART ONE: COMPILATION AND RECOMPILATION
Compilation
Recompilation
Tools and Commands for Recompilation Scenarios
Parser and Algebrizer
Optimization
Physical Query Processing Part Two: Execution ❘ 417
PHYSICAL QUERY PROCESSING PART TWO: EXECUTION
Database I/O Information
Working with the Query Plan
Estimated Execution Plan
Actual Execution Plan
Index Access Methods
Statistics
Join Algorithms
Data Modification Query Plan
Query Processing Enhancements on Partitioned Tables and Indexes
Gathering Query Plans for Analysis with SQL Trace
NOTEWORTHY INDEX-RELATED FEATURES IN SQL SERVER
What’s New for Indexes in SQL Server 2012
Index Features from SQL Server 2008R2, SQL Server 2008, and SQL Server 2005
Partitioned Tables and Indexes ❘ 455
PARTITIONED TABLES AND INDEXES
Understanding Indexes
Creating Indexes
Why Use Both Partitioned Tables and Indexes?
Creating Partitioned Tables
INDEX MAINTENANCE
Monitoring Index Fragmentation
Cleaning Up Indexes
IMPROVING QUERY PERFORMANCE WITH INDEXES
DATABASE TUNING ADVISOR
TOO MANY INDEXES?
REPLICATION OVERVIEW
Replication Components
Replication Types
Replication Enhancements in SQL Server 2012
REPLICATION MODELS
Single Publisher, One or More Subscribers
Multiple Publishers, Single Subscriber
Multiple Publishers Also Subscribing
Updating Subscriber
Peer-to-peer
IMPLEMENTING REPLICATION
Setting Up Snapshot Replication
Setting Up Distribution
Implementing Snapshot Replication
Implementing Transactional and Merge Replication
PEER-TO-PEER REPLICATION
Setting Up Peer-to-Peer Replication
Configuring Peer-to-Peer Replication
SCRIPTING REPLICATION
MONITORING REPLICATION
Replication Monitor
Performance Monitor
Replication DMVs
sp_replcounters
CLUSTERING AND YOUR ORGANIZATION
What Clustering Can Do
What Clustering Cannot Do
Choosing SQL Server 2012 Clustering for the Right Reasons
Alternatives to Clustering
CLUSTERING: THE BIG PICTURE
How Clustering Works
Clustering Options
UPGRADING SQL SERVER CLUSTERING
Don’t upgrade
Don’t Upgrade
Upgrading Your SQL Server 2012 Cluster In Place
Rebuilding Your Cluster
Getting Prepared for Clustering ❘ 523
Back-Out Plan
Which Upgrade Option Is Best?
GETTING PREPARED FOR CLUSTERING
Preparing the Infrastructure
Preparing the Hardware
Clustering Windows Server 2008 ❘ 527
CLUSTERING WINDOWS SERVER 2008
Before Installing Windows 2011 Clustering
Installing Windows Server 2008 Failover Clustering
Preparing Windows Server 2008 for Clustering
CLUSTERING MICROSOFT DISTRIBUTED TRANSACTION COORDINATOR
CLUSTERING SQL SERVER 2012
Step by Step to Cluster SQL Server
Installing the Service Pack and Cumulative Updates
Test, Test, and Test Again
MANAGING AND MONITORING THE CLUSTER
Troubleshooting Cluster Problems ❘ 543
TROUBLESHOOTING CLUSTER PROBLEMS
How to Approach Windows Failover Clustering Troubleshooting
Doing It Right the First Time
Gathering Information
Resolving Problems
Working with Microsoft
TYPES OF FAILURE
Hardware Failure
Data Modification Failure
Software Failure
Local Disasters
MAKING PLANS
Backup/Recovery Plan
Disaster Recovery Planning
Creating the Disaster Recovery Plan
Maintaining the Plan
Overview of Backup and Restore ❘ 559
OVERVIEW OF BACKUP AND RESTORE
How Backup Works
Copying Databases
Backup Compression
Comparing Recovery Models
Choosing a Model
Switching Recovery Models
Backing Up History Tables
Permissions Required for Backup and Restore
Backing Up System Databases
Full-Text Backup
Verifying the Backup Images
How Restore Works
PREPARING FOR RECOVERY
Recoverability Requirements
Maintenance Time Window
Other High-Availability Solutions
Developing and Executing a Backup Plan ❘ 585
DEVELOPING AND EXECUTING A BACKUP PLAN
Using SQL Server Management Studio
Database Maintenance Plans
Using Transact-SQL Backup Commands
MANAGING BACKUPS
BACKUP AND RESTORE PERFORMANCE
PERFORMING RECOVERY
Restore Process
Initial Configuration
Deploying with Management Studio
Deploying with T-SQL Commands
MONITORING AND TROUBLESHOOTING
Monitoring with Management Studio
Monitoring with Stored Procedures
Troubleshooting Approach
Synchronizing Dependencies
Switching Roles from the Primary to Secondary Servers
Switching Between Primary and Secondary Servers
Redirecting Clients to Connect to the Secondary Server
DATABASE BACKUP PLAN
INTEGRATING LOG SHIPPING WITH OTHER HIGH-AVAILABILITY SOLUTIONS
SQL Server 2012 Data Mirroring
Windows Failover Clustering
SQL Server 2012 Replication
Removing Log Shipping with Management Studio
Removing Log Shipping with T-SQL Commands
LOG-SHIPPING PERFORMANCE
UPGRADING TO SQL SERVER 2012 LOG SHIPPING
Minimum Downtime Approach
With Downtime Approach
Deploy Log Shipping Approach
OVERVIEW OF DATABASE MIRRORING
Operating Modes of Database Mirroring ❘ 643
OPERATING MODES OF DATABASE MIRRORING
Database Mirroring In Action ❘ 645
DATABASE MIRRORING IN ACTION
Preparing the Endpoints
Preparing the Database for Mirroring
Initial Synchronization Between Principal and Mirror
Establishing the Mirroring Session
High-Safety Operating Mode Without Automatic Failover
High-Safety Operating Mode with Automatic Failover
High-Performance Operating Mode
DATABASE MIRRORING AND SQL SERVER 2012 EDITIONS
DATABASE MIRRORING CATALOG VIEWS
sys.database_mirroring
sys.database_mirroring_witnesses
sys.database_mirroring_endpoints
Database Mirroring Role Change ❘ 661
DATABASE MIRRORING ROLE CHANGE
Automatic failover
Automatic Failover
Database Availability Scenarios ❘ 667
DATABASE AVAILABILITY SCENARIOS
Principal Is Lost
Mirror and Witness Are Lost
MONITORING DATABASE MIRRORING
Monitoring Using System Monitor
Monitoring Using Database Mirroring Monitor
Setting Thresholds on Counters and Sending Alerts
TROUBLESHOOTING DATABASE MIRRORING
Troubleshooting Setup Errors
Troubleshooting Runtime Errors
Automatic Page Repair
Preparing the Mirror Server for Failover ❘ 681
PREPARING THE MIRROR SERVER FOR FAILOVER
Hardware, Software, and Server Configuration
Database Availability During Planned Downtime
SQL Job Configuration on the Mirror
Database TRUSTWORTHY Bit on the Mirror
Client Redirection to the Mirror
Mirroring Multiple Databases ❘ 685
MIRRORING MULTIPLE DATABASES
DATABASE MIRRORING AND OTHER HIGH-AVAILABILITY SOLUTIONS
Database Mirroring versus Clustering
Database Mirroring versus Transactional Replication
Database Mirroring versus Log Shipping
Database Mirroring Versus Availability Groups
MIRRORING EVENT LISTENER SETUP
DATABASE SNAPSHOTS
A TOUR OF INTEGRATION SERVICES
Integration Services Uses
The Main Parts of Integration Services
Administration of the Integration Services Service ❘ 699
Project Management and Change Control
ADMINISTRATION OF THE INTEGRATION SERVICES SERVICE
An Overview of the Integration Services Service
Monitoring Activity
ADMINISTRATION OF INTEGRATION SERVICES PACKAGES IN PACKAGE DEPLOYMENT MODEL
Using Management Studio for Package Management
ADMINISTRATION OF INTEGRATION SERVICES PACKAGES IN PROJECT DEPLOYMENT MODEL
Configuring the SSIS Catalog
Deploying Packages
Configuring Packages
EXECUTION AND SCHEDULING
Running Packages in SQL Server Data Tools
Running Packages with the SQL Server Import and Export Wizard
Running Packages with DTExec
Running Packages with DTExecUI (Package Deployment Model)
Running Packages with the Execute Package Tool (Project Deployment Model)
Scheduling Execution with SQL Server Agent
Applying Security to Integration Services ❘ 725
Running Packages with T-SQL
APPLYING SECURITY TO INTEGRATION SERVICES
An Overview of Integration Services Security
Securing Packages in Package Deployment Model
TOUR OF ANALYSIS SERVICES
Tabular Model Components
Analysis Services Architectural Components
Administering Analysis Services Server ❘ 733
ADMINISTERING ANALYSIS SERVICES SERVER
Server Properties
Required Services
Analysis Services Scripting Language
Administering Analysis Services Databases ❘ 737
ADMINISTERING ANALYSIS SERVICES DATABASES
Deploying Analysis Services Databases
Processing Analysis Services Objects
Applying Security to Analysis Services in the Tabular Model
The Service Account
The Web Service URL
Reporting Services Databases
The Report Manager URL
Execution Account
Scale-out Deployment
REPORT SERVER PROPERTIES
General Properties Page
Execution Properties Page
History Properties Page
Logging Properties Page
Security Properties Page
Advanced Properties Page
THE REPORT EXECUTION LOG
COMPONENTS OF INTEGRATION
Reporting Services
Service Application Architecture
Using Data Connections in Excel
PerformancePoint Data Refresh
Visio Services Data Refresh
PowerPivot Data Refresh
INTRODUCTION TO SQL AZURE
Infrastructure Layer
Server and Database Provisioning
Throttling and Load Balancing
Configuring SQL Azure Firewalls
Connecting to SQL Azure
ADMINISTERING SQL AZURE
Creating Logins and Users
Assigning Access Rights
WORKING WITH SQL AZURE
Backups with SQL Azure
Object Explorer for SQL Azure
Availability Group Failover Operation
Suspend an Availability Database
Resume an Availability Database
Client Application Connections
ACTIVE SECONDARY FOR SECONDARY READ-ONLY
Active Secondary for Secondary Read-Only ❘ 875
Read-Only Access Behavior
Secondary Replica Client Connectivity
BACKUP ON THE SECONDARY REPLICA
Backup on the Secondary Replica ❘ 879
Evaluate Backup Replicas Metadata
ALWAYSON GROUP DASHBOARD
Monitoring and Troubleshooting ❘ 883
INDEX
P. 1
Professional Microsoft SQL Server 2012 Administration

Professional Microsoft SQL Server 2012 Administration

Ratings: (0)|Views: 493|Likes:
Published by Wiley
An essential how-to guide for experienced DBAs on the most significant product release since 2005!

Microsoft SQL Server 2012 will have major changes throughout the SQL Server and will impact how DBAs administer the database. With this book, a team of well-known SQL Server experts introduces the many new features of the most recent version of SQL Server and deciphers how these changes will affect the methods that administrators have been using for years. Loaded with unique tips, tricks, and workarounds for handling the most difficult SQL Server admin issues, this how-to guide deciphers topics such as performance tuning, backup and recovery, scaling and replication, clustering, and security.

Serves as a must-have how-to guide on the new features of the 2012 release of Microsoft SQL Server Walks you through ways to manage and monitor SQL Server and automate administration Guides you through SQL Azure for cloud computing, data replication, and data warehouse performance improvements Addresses client-connectivity enhancements, new features that ensure high availability of mission-critical applications, and tighter integration with Excel and SharePoint for data analysis and reporting Highlights major changes to the suite of SQL Server BI tools, including integration, reporting, and analysis services Includes real-world case examples and best practices from Microsoft insiders

If you're a database administrator eager to get started with the newest version of SQL Server, then this book is essential reading.

An essential how-to guide for experienced DBAs on the most significant product release since 2005!

Microsoft SQL Server 2012 will have major changes throughout the SQL Server and will impact how DBAs administer the database. With this book, a team of well-known SQL Server experts introduces the many new features of the most recent version of SQL Server and deciphers how these changes will affect the methods that administrators have been using for years. Loaded with unique tips, tricks, and workarounds for handling the most difficult SQL Server admin issues, this how-to guide deciphers topics such as performance tuning, backup and recovery, scaling and replication, clustering, and security.

Serves as a must-have how-to guide on the new features of the 2012 release of Microsoft SQL Server Walks you through ways to manage and monitor SQL Server and automate administration Guides you through SQL Azure for cloud computing, data replication, and data warehouse performance improvements Addresses client-connectivity enhancements, new features that ensure high availability of mission-critical applications, and tighter integration with Excel and SharePoint for data analysis and reporting Highlights major changes to the suite of SQL Server BI tools, including integration, reporting, and analysis services Includes real-world case examples and best practices from Microsoft insiders

If you're a database administrator eager to get started with the newest version of SQL Server, then this book is essential reading.

More info:

Publish date: Mar 29, 2012
Added to Scribd: Dec 20, 2012
Copyright:Traditional Copyright: All rights reservedISBN:9781118286845
List Price: $49.99 Buy Now

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
This book can be read on up to 6 mobile devices.
See more
See less

11/27/2014

962

9781118286845

$49.99

USD

You're Reading a Free Preview
Pages 20 to 93 are not shown in this preview.
You're Reading a Free Preview
Pages 113 to 640 are not shown in this preview.
You're Reading a Free Preview
Pages 660 to 788 are not shown in this preview.
You're Reading a Free Preview
Pages 808 to 897 are not shown in this preview.
You're Reading a Free Preview
Pages 917 to 962 are not shown in this preview.

Activity (4)

You've already reviewed this. Edit your review.
1 thousand reads
1 hundred reads
RickBoss80 liked this
Yassine Hsn liked this

You're Reading a Free Preview

Download
scribd