Sie sind auf Seite 1von 32

Spark the future.

May 4 8, 2015
Chicago, IL

BRK2577

Upgrading to Microsoft SQL


Server 2014 and to Microsoft
Mike
Shelton
Azure
Ross Loforte

Preparing to Upgrade

Preparing to Upgrade
Research current environment
- MAP tool

Define a current environment baseline


- Run Performance Monitor
- Management Data Warehouse

Choose target environment


Choose an edition of SQL Server 2014

- Allowed paths by Editions

Migration to Azure

Demo
Microsoft Assessment and Planning
Toolkit
Mike Shelton

Choose Upgrade Tools


SQL Server 2014 Upgrade
Advisor

Analyzes SQL no longer valid on SQL Server 2014


Generates a report

Requirements

Windows Vista SP1, Windows 7, or Window Server 2008


R2/2012/2012 R2
The Microsoft .NET Framework 4 (the same version of
the .NET Framework included with SQL Server 2014
and Visual Studio 2010)
Windows Installer 4.5
Processor speed of at least 500 MHz
15 MB of available hard disk space
Supports SQL Server SQL Server 2005, 2008, 2008 R2,
and 2012
Download version is available as part of the

Demo
SQL Server 2014 Upgrade
Advisor
Mike Shelton

Other Upgrade Tools


Best Practices Analyzer for SQL Server 2005/2008

R2/2012

Gathers information about Microsoft SQL Server


Determines if the configurations are set according to the recommended best practices
Reports on all configurations, indicating settings that differ from recommendations
Indicates potential problems and Recommends solutions

download from: www.microsoft.com/download

SQL Server Profiler

Create and manage SQL traces


Replay SQL trace
Saved in a trace file or table, can later be analyzed

System Monitor

SQL Server: Deprecated Features Object

SQL Server 2014 Setup

Demo
Best Practices Analyzer for SQL
Server
Mike Shelton

Developing an Upgrade
Plan

Upgrade Strategies
In-Place upgrade
Restrictions:
SQL Server
SQL Server
2005/8/R2
All SQL Server components be upgraded together
2014
Instance
Instance
From a 32-bit instance to a 64-bit instance not supported
Complex restore policy
SQL Setup steps to upgrade:
1. Installs prerequisites
2. Checks for upgrade blocking issues
3. If pending restart exists, restart
4. Installs SQL Server 2014 executables and support files
5. Stops the legacy SQL Server service, no longer available
6. Updates the selected component data and objects
7. Removes the legacy executables and support files
SQL Server 2005/2008/2008 R2/2012 client tools not removed
Database compatibility level not changed

Setup Requirements for an InPlace Upgrade


SQL
SQL
SQL
SQL

Server
Server
Server
Server

2005: SP4 is required


2008: SP2 is required
2008 R2: SP1 is required
2012: SP1 is required

Sufficient disk space must be available for SQL Server 2014


Not supported: 32-bit to 64-bit (x86 to x64) versions and vice versa
Supported version of the Windows operating system

Upgrade Strategies
Side-by-Side upgrade

SQL Server 2005/8/R2/2012


Instance

Manual intervention
Data files
Database objects
Configuration settings
Security settings
SQL Server Agent jobs
SQL Server Integration Services
(SSIS) packages
Need server and storage capacity
Application name changes
Simpler backup strategy
Moving the

SQL Server 2014


Instance
Compare
and
Verify
Verified!

database

Backup/Restore Upgrade Method


Detach/Attach Upgrade Method
Copy Database Wizard Upgrade Method
Log Shipping

Upgrade options and considerations


In-Place

Upgrade options and considerations


Side-by-side (migrate)

Software Requirements for SQL Server


2014
Setup will install .NET 4.0, the SQL Server Native Client, and support

files
.NET requirements:

SQL Server 2014 on a Windows Server 2008 SP2 server, install .NET Framework 3.5
On Windows 7 and Windows Server 2008 R2 SP1, enable .NET Framework 3.5

Windows PowerShell 2.0 is required


Application and Connection Requirements
SQL Server native Client 11.0

.NET Framework 3.5 SP1 must be installed


.NET Framework 3.5 SP1 installed by SQL 2014
DB-Library client tools no longer supported

Other Upgrade Considerations


Product Updates (Slipstreaming) in SQL Server
2014 setup, more info: http://
blogs.msdn.com/b/ai/archive/2013/01/14/installing-sql-server-2012-service-pack-1-sp1-cumulative-upda
te-in-one-installation-using-sql-server-2012-product-update.aspx

Upgrade from an Evaluation edition of a previous


SQL Server version is not supported
Allowed Upgrade Paths

More info: https://technet.microsoft.com/en-us/library/ms143393.aspx

Other Upgrade Scenarios


Upgrading Both Windows and SQL Server

SQL Server 2014 supports Windows Server 2008 R2 SP1 and Windows Server
2012 and 2012 R2 Server Core
If on Windows Server 2003 or Windows Server 2008, an upgrade of Windows
is required
Before Windows operating system upgrade, install the SQL Service Pack
supported by the upgraded operating system

Upgrading Multiple SQL Instances

Shared components will be upgraded


Backup plan, in case the windows server is inoperative
Backup all databases

Plan for Backups


1. Before upgrade, make a backup of

the user databases and data


2. Upgrade complete, perform backups
3. After configuration changes, take full
database backups
4. After user acceptance and
validation, take full database
backups

Minimizing Upgrade Downtime

Check the legacy SQL Server versions


Make sure that installation requirements are
met
Preinstall .NET and Windows components
Preinstall Visual Studio 2008 SP1 or a later
version
Preinstall SQL Server 2014 common
components
Select the optimal side-by-side upgrade
strategy
Use new service accounts

Upgrading Failover Cluster


Instances
Upgrading each node, one at a time
Hardware and software upgrade, do a side-byside
Upgrade passive cluster nodes first

Upgrade at least half of the passive cluster nodes


Stop all traffic for the SQL Server instance, to ensure a
consistent state
Brief outage is required to upgrade

Upgrading AlwaysOn Availability


Groups
1. During the upgrade, only back up from the primary replica
2. Prevent unintended failovers, turn off automatic failover to
synchronous-commit replicas
3. Upgrade remote secondary replicas first
4. Upgrade local secondary replicas next
5. Failover the availability group to an upgraded secondary
synchronous-commit replica server
6. If failover to an asynchronous-commit secondary replica, data loss
may occur
7. Upgrade the primary replica

Upgrade Assistant for SQL Server


Upgrade
for SQL Server 2014 (UAFS) helps DBA to assess
2014Assistant
(UAFS)
application compatibility and performance difference to upgrade SQL
Server from old version to the latest version, download: http://
Step
Task
Computer
SQL Server Version
www.scalabilityexperts.com/tools/downloads.html
1

Create a Test Environment

Baseline

SQL Server 2005/2008/2008R2/2012

Capture a Playback

Baseline

SQL Server 2005/2008/2008R2/2012

Setup Playback Baseline System

Baseline

SQL Server 2005/2008/2008R2/2012

Run Upgrade Advisor

Baseline

SQL Server 2005/2008/2008R2/2012

Replay Trace on SQL Server


2005/2008/2008R2/2012

Baseline

SQL Server 2005/2008/2008R2/2012

Setup Playback Test System

Baseline to
Test

SQL Server 2005/2008/2008R2/2012

Upgrade to SQL Server 2014

Test

Upgrade to SQL Server 2014

Run Test Trace Playback

Test

SQL Server 2014

Compare and Analyze

Test

SQL Server 2014

Post Upgrade
Considerations

Post Upgrade Considerations

Checklist
Success Criteria
Jobs
Maintenance Plans
DBCC
Update Statistics
Client strings connections
HA/DR testing
Performance validation

Moving SQL Server to


Azure

Moving SQL Server Databases to Azure


Wizard to deploy DB to SQL Server
in Azure VM
Wizard to deploy DB to Azure SQL
Database

SQL Database Migration Wizard


http://sqlazuremw.codeplex.com/

Demo
Moving to Azure SQL
Database
Ross Loforte

Backup to Azure
Backup to
DB on-premise
Backup to Azure
Azure

SQL Server Backup to URL

Managed
Automated
SQL Server Backup Policy
Backup

DB on-premise Auto backup to Azure


Agent decides when do backups
Simple configuration
Manage at database level or instance level

Resources
SQL Server 2014 Upgrade Guide
http://
download.microsoft.com/download/7/1/5/715BDFA7-51B6-4D7B-AF17-61E78C7E538F/SQL_Server_2014_Upgrade_technical_guide.
pdf

Microsoft Virtual Academy


http://www.microsoftvirtualacademy.com/

SQL Server 2014 Resources page


http://www.microsoft.com/en-us/server-cloud/products/sql-server/Resources.aspx

SQL Database Migration Wizard


http://sqlazuremw.codeplex.com/

Please evaluate this


session

Your feedback is important to us!

Visit Myignite at
http://myignite.microsoft.com
or download and use the Ignite Mobile

2015 Microsoft Corporation. All rights reserved.

Das könnte Ihnen auch gefallen