19
“Moves Like Jagger” Upgrading to SQL Server 2012 Mark Broadbent Principal SQL Consultant SQLCloud SQLCLOUD.CO.UK

Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

Embed Size (px)

DESCRIPTION

Do you want to safely upgrade or migrate to SQL Server 2012? This presentation will give you ideas on how to do this as safely as possible with the least downtime.

Citation preview

Page 1: Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

“Moves Like Jagger”Upgrading to SQL Server 2012

Mark BroadbentPrincipal SQL Consultant

SQLCloudSQLCLOUD.CO.UK

Page 2: Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

About

Mark Broadbent“Possibly the hardest drinking DBA on the planet”“30 billion times more intelligent than a live mattress”

Email: [email protected]

Twitter: retracement

Blog: http://tenbulls.co.uk

PASS UK Regional Mentor

Event Lead to the UK’s first ever SQLSaturday (Cambridge)

Event #2nd due on Friday 27th Sept 2013 (pre-con) 28th Sept (Community day)

http://www.sqlsaturday.com/228/eventhome.aspx

Cambridgeshire PASS Chapter UG Leader http://sqlcambs.org.uk

Page 3: Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

Agenda

• Upgrade path

• Preparing and reporting for upgrade

• Upgrade strategies

• Measuring success

• Advanced scenarios

Page 4: Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

But first... why upgrade to 2012?

New Features

Move to 64-bit

New Hardware

Mainstream Support

Virtualization

Consolidation

Page 5: Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

SQL Failover Clustering enhancements

“My Favourite” New Features

AlwaysOnAvailability Groups

Contained Databases

Local TempDBSupport

Multi Subnet Clustering Support

Server Core Support

Page 6: Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

Mainstream Support

Product Mainstream Support End

Extended Support End

Service Pack Support End

Windows 2003 2010-07-13 2015-07-14 2009-04-14

Windows 2003R2 2010-07-13 2015-07-14 2009-04-14

Windows 2008 2015-01-13 2020-01-14 2011-07-12

Windows 2008R2 2015-01-13 2020-01-14 2013-04-09

SQL 2005 2011-04-12 2016-04-12 2007-07-10

SQL 2008 2014-07-08 2019-07-09 2010-04-13

SQL 2008R2 2014-07-08 2019-07-09 2012-07-10

http://support.microsoft.com/lifecycle/#ServicePackSupport

Page 7: Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

Supported Upgrade Path

SQL 2005 SP4

SQL 2008R2 SP1

SQL 2012

SQL 2008 SP2

SQL 2000

Requires staged

Upgrade to SQL 2005,

SQL 2008 /R2

Slipstream?

Page 8: Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

Edition Hierachy

• New Editions

• No Datacenter or Workgroup Editions

• No AWE support

• No Itanium support

• Enterprise• Business Intelligence• Standard

Principal Editions

• Web

Specialized Editions

• Developer• Express• Express LocalDB

Breadth Editions

Evaluation Edition

Core Based Licensing

Server + CAL Licensing

Core Based or Server + CAL Licensing

Page 9: Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

Database UpgradeDemo

Page 10: Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

Preparing and Reporting for Upgrade

• Discover candidates for consolidation

• Document the candidates for upgrade

• Baseline existing candidates

• Load test new server

• Check new server configuration

Page 11: Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

Capture…

Wait Stats

Application LoadLPIM

Instant File Initialization Statement Execution timeQuery Plans

MAXDOP

CPU count

Server Shares

NTFS Security Performance Trace

Partition Alignment

RAID Stripe Size

NTFS Cluster SizeSQL Errorlogs

Collation

Backup History

Windows Event Logs

Page 12: Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

Discovery and Analysis Toolkit

System Center

MAP Toolkit

Upgrade Advisor

Upgrade Assistant

TSQLProfiler WMI

PowerShellMsinfo32.exeCPU-Z

SQLIO SQLStress

SQLIOSimDistributed Replay

fsutil

Hardware Vendor Tools

Performance Monitor

Page 13: Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

Upgrade Strategies

• Risky, direct change• Backout can be difficult• Definite downtime

• Side by side• Risk to live instance• Connectivity considerations

• Less risk, backout easier• Upgrade requires less downtime

• Implement new features• Can remove deprecated ones

Side By Side

In Place

Migration to New

Page 14: Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

Reporting for UpgradeDemo

Page 15: Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

Moving SQL to Server Core

• How to install or upgrade?

• Configuration and management

• Performance Monitoring

• Restrictions

Page 16: Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

Considerations for moving SQL to AlwaysOn

Listener? MSDTC MSDTC

Availability Group Considerations

SQL Failover Clustering…and for both

Do you use a listener?

No distributed transactions.

Abstraction is at the database NOTthe instance.

Shared storage and cluster validation requirements

Windows failover Cluster

Do you configure node weighting?

Page 17: Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

Summary

• Understand the reason for upgrade before leaping

• Always look to consolidation candidates

• Ensure you analyse your upgrade targets & destinations

• Retain useful historical metrics for future issues

• Understand your upgrade path

• Implement new capabilities to your advantage

• Aim to minimize downtime and maximize availability

• Be prepared for failure

• This is your neck on the line, be prepared and be careful!

• Good luck!

Page 18: Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

(Don’t forget to fill in your evaluation forms!)

for attending this session and SQLBits XI in Nottingham

Thank you

Page 19: Moves Like Jagger - Upgrading to SQL Server 2012 (SQLBits XI Edition)

Coming up…

#SQLBITS

Speaker Title Room

Fusion-io Quantifying the cost of Compression Theatre

Microsoft SQL Azure for the DBA Exhibition B

Pyramid Analytics Introduction to the Pyramid Analytics BI Platform Suite 3

LSI Enabling Flash to Support Mission-Critical Applications Suite 1

SQLSentry Monitoring and Performance Tuning for AlwaysOn Suite 2

SIOS High Performance SANLess Clustering Suite 4