Migrating your SQL Server Instance

Slides:



Advertisements
Similar presentations
Implementing Tableau Server in an Enterprise Environment
Advertisements

Burt King We will cover: Essentials --No command line needed here (mott) What is SQL Server How does it come to life What are the.
BARBARIN DAVID SQL Server Senior Consultant Pragmantic SA SQL Server Denali : New administration features.
Media Partners.
Chapter 10 : Designing a SQL Server 2005 Solution for High Availability MCITP Administrator: Microsoft SQL Server 2005 Database Server Infrastructure Design.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.
Stephan Hurni Consultant Trivadis AG, SQL Server notes from the field.
Clustering SQL Server Tom Pullen Senior DBA, RM Education
IT 456 Seminar 5 Dr Jeffrey A Robinson. Overview of Course Week 1 – Introduction Week 2 – Installation of SQL and management Tools Week 3 - Creating and.
Log Shipping, Mirroring, Replication and Clustering Which should I use? That depends on a few questions we must ask the user. We will go over these questions.
Narasimha Reddy Gopu Jisha J. Agenda Introduction to AlwaysOn * AlwaysOn Availability Groups (AG) & Listener * AlwaysOn Failover * AlwaysOn Active Secondaries.
You Inherited a Database Now What? What you should immediately check and start monitoring for. Tim Radney, Senior DBA for a top 40 US Bank President of.
Session Name Pelin ATICI SQL Premier Field Engineer.
Defense In Depth: Minimizing the Risk of SQL Injection
Microsoft Connect /23/ :39 PM
Microsoft Connect /6/ :05 AM
SQL Server on Linux CTP 1.1 Florian
Migrating SQL Server Quickly and Efficiently
Benchmarking like a PRO
You Inherited a Database Now What?
Data Platform and Analytics Foundational Training
System Center Marketing
5/26/ :35 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Disaster Recovery Where to Begin
Lead SQL BankofAmerica Blog: SQLHarry.com
Upgrade to Windows 10: In depth
Upgrade, upgrade, upgrade! Say goodbye to clean installs of Windows 10
TFS Database Import Service for Visual Studio Team Services
Planning an Effective Upgrade from SQL Server 2008
Design Seamless Upgrades to SQL Server 2016 with Query Store
Installation and database instance essentials
Managing the software Module 11 8/29/2018 9:32 PM
Contained DB? Did it do something wrong?
Introduction to SQL Server Management for the Non-DBA
Configuring the network environment
DEA Will Be Your New Best Friend!
Required 9s and data protection: introduction to sql server 2012 alwayson, new high availability solution Santosh Balasubramanian Senior Program Manager.
Migration to SharePoint 2013
Test Upgrade Name Title Company 9/18/2018 Microsoft SharePoint
Upgrading to SQL Server 2016
Upgrading to Microsoft SQL Server 2014
Upgrading SQL Server Rob Carrol, Microsoft January 29, 2009.
SQL Server OLTP with Microsoft Azure Virtual Machines
Universal SQL Installations Framework (Script review and Demo)
Your Data Any Place, Any Time
Dynamics AX Performance
Migrate to CRM Online - Tips and Tricks
Microsoft Ignite NZ October 2016 SKYCITY, Auckland.
What’s new in SQL Server 2016 Availability Groups
Use PowerShell & dbatools to Manage your SQL Server Environment
Brandon Lukes SSMS Tips and Tricks.
11/23/2018 3:03 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
SQL Server on Linux: High Availability And Disaster Recovery
Microsoft Virtual Academy
From DTS to SSIS, Redesign or Upgrade
DAT381 Team Development with SQL Server 2005
AlwaysOn Availability Groups
Microsoft Connect /23/ :38 AM
You Inherited a Database Now What?
MDC-B203 Deploying Applications in Microsoft System Center Virtual Machine Manager Using Services John Messec Program Manager Microsoft.
Microsoft SQL Server Upgrade and Downgrade scenarios
Use PowerShell & dbatools to Manage your SQL Server Environment
Upgrading to Microsoft SQL Server 2014
Your Data Any Place, Any Time
Skype for Business Assessment Results
System Center Configuration Manager Assessment Results
SQL Server Assessment Results
SharePoint Server Assessment Results
Productive + Hybrid + Intelligent + Trusted
The DBA Quit and now you’re it:
Presentation transcript:

Migrating your SQL Server Instance 11/21/2018 5:23 AM Migrating your SQL Server Instance Brandon Lukes Have an old SQL instance hanging around and need to migrate it? Have you had issues migrating a SQL instance before? Well we will cover the basics of migrating SQL. This includes planning, preparing your current environment, setting up the new environment, migrating the databases, and validation. © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Brandon Lukes Microsoft SQL Premier Field Engineer 11/21/2018 5:23 AM Brandon Lukes Microsoft SQL Premier Field Engineer brandon.lukes@microsoft.com Indianapolis, IN 12+ years experience with SQL Hobbies include family, movies, gaming, beer © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Agenda Planning for your migration Preparing for the migration 11/21/2018 5:23 AM Agenda Planning for your migration Preparing for the migration Migrating to the new environment How many people have migrated environments? Planning: why are you migrating? Preparing: setting yourself up for success Migrating: process to move your environment © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

What we aren’t covering 11/21/2018 5:23 AM What we aren’t covering Version to version specifics Hardware requirements In-place upgrades (or rolling) Log Shipping Upgrading SSAS/SSIS/SSRS Feature specifics (encryption, in-memory, stretch, AGs, replication) New features © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Planning your migration 11/21/2018 5:23 AM Planning your migration What is your objective? What are the requirements? What is your plan? What defines success? Objective: software out of support, hardware refresh, business requirements, new features Requirements: hardware, OS, upgrade paths Plan: checklist, testing, know what to expect, communication Success: timeframe, downtime, verification Who defines? Failure: rollback © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Research! Research deprecated/breaking features SQL Best Practices 11/21/2018 5:23 AM Research! Research deprecated/breaking features MSDN Extended Events! SQL Best Practices Configurations, physical/virtual, maintenance, security Research new features In-memory OLTP, AlwaysOn, Columnstore, Query Store, etc Best Practices File location, autogrow, sizing MAX DOP, Max Server Memory Tempdb Maintenance Backups, Indexes, Stats, Integrity Checks © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Preparing for your migration Current System 11/21/2018 5:23 AM Preparing for your migration Current System Fix findings from SQL Upgrade Advisor Replace deprecated/breaking features Consolidation Clean-Up Fix findings (or app/developers fix) Compatibility mode? Research deprecated/breaking features (code that is running) Consolidation (combine instances and databases) Clean-Up (unused databases, unused logins, orphaned DB users) © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Upgrade Advisor Demo https://www.microsoft.com/en-us/download/details.aspx?id=48119

Preparing for your migration New Environment 11/21/2018 5:23 AM Preparing for your migration New Environment Verify Servers built correctly Install SQL and patch Configure SQL to your best practices Test third party tools Create backup and maintenance jobs Test (and test again) Verify Servers built correctly (and configured) – disks, cluster Install SQL and patch – all CUs – SQL Azure is tested Configure SQL to your best practices (port, user access, etc) - vendor Test third party tools (backups, monitoring, auditing) Create backup and maintenance jobs Test migration (and test again) Get timing down New client tools © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Communication is Key Impacted teams Infrastructure teams Timeline App, Dev, Business Meetings? Emails? Infrastructure teams You’ll need hardware and support Timeline Start/end Communication plan Client tools Connection strings Other tools © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Migrating to New Environment Current System 11/21/2018 5:23 AM Migrating to New Environment Current System Logins Server role permissions System database objects SQL Agent jobs Backup databases or detach/move/attach Script out current logins – SSIS source/destination OR sp_help_revlogin – users and hashed passwords Script out objects or permissions from system databases – USERS, PERMISSIONS, OBJECTS, startup procs Script out SQL Agent jobs (often overlooked, COTS apps) Backup databases © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Script Objects Demo

Migrating to New Environment New Environment 11/21/2018 5:23 AM Migrating to New Environment New Environment Migrate system objects Restore databases Migrate logins Run checkdb Index maintenance and update stats Migrate jobs (SSIS) Run validation checks Migration objects and permissions from system databases Restore databases Migrate logins Run checkdb (to check for any corruption in inconsistencies) Rebuild/reorg indexes and update stats (to reduce chance of poor performance) Migrate jobs Run validation checks (database, jobs, applications) © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Testing FTW! Installation Configuration Scripts (backups, logins, etc) 11/21/2018 5:23 AM Testing FTW! Installation Configuration Scripts (backups, logins, etc) Workload Make sure things don’t break Extended Events (capture deprecated stuff) Get old workload (Profiler, Extended Events) Use ostress, Profiler, SQL Load Test, or distributed replay deprecation_announcement - Occurs when you use a feature that will be removed from a future version of SQL Server, but will not be removed from the next major release of SQL Server. deprecation_final_support - Occurs when you use a feature that will be removed from the next major release of SQL Server. © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Links Supported Version and Edition Upgrades https://msdn.microsoft.com/en-us/library/ms143393.aspx Upgrade to SQL Server 2016 https://msdn.microsoft.com/en-us/library/bb677622.aspx Use Extended Events to find deprecated events https://www.mssqltips.com/sqlservertip/1857/identify-deprecated-sql-server-code-with-extended-events/ SSMS https://msdn.microsoft.com/en-us/library/mt238290.aspx sp_help_revlogin https://support.microsoft.com/en-us/kb/918992

Recap Planning for your migration Preparing for the migration 11/21/2018 5:23 AM Recap Planning for your migration Preparing for the migration Migrating to the new environment Planning: WHY? Objectives? Define SUCCESS Preparing: setting yourself up for success Migrating: process to move your environment, TEST, VALIDATE Next Steps: planning for your future © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.