Download presentation
Presentation is loading. Please wait.
1
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.
2
Brandon Lukes Microsoft SQL Premier Field Engineer
11/21/2018 5:23 AM Brandon Lukes Microsoft SQL Premier Field Engineer 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.
3
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.
4
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.
5
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.
6
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.
7
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.
8
Upgrade Advisor Demo
9
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.
10
Communication is Key Impacted teams Infrastructure teams Timeline
App, Dev, Business Meetings? s? 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.
11
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.
12
Script Objects Demo
13
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.
14
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.
15
Links Supported Version and Edition Upgrades
Upgrade to SQL Server 2016 Use Extended Events to find deprecated events SSMS sp_help_revlogin
16
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.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.