Your SlideShare is downloading. ×
0
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

SQL Server 2012 : réussir la migration - Stéphane Haby - Antonio De Santo - dbi services

1,438

Published on

Une migration de base de données n'est pas toujours une tâche simple à réaliser. Découvrez quels sont les pièges à éviter, les problématiques que l'on peut rencontrer mais également les bonnes …

Une migration de base de données n'est pas toujours une tâche simple à réaliser. Découvrez quels sont les pièges à éviter, les problématiques que l'on peut rencontrer mais également les bonnes pratiques issues de notre expérience SQL Server 2012. Vous apprendrez tout ce qu'il faut savoir pour réussir une migration en toute sérénité.

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,438
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
19
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. dbi servicesMigration to SQL Server 2012 Antonio De Santo Consultant Stéphane Haby Consultant1 www.dbi-services.com 26.04.2012 © dbi services
  • 2. dbi servicesMigration to SQL Server 2012 Agenda i. Introduction ii. Why ? iii. How ? iv. After… v. Conclusion2 www.dbi-services.com 26.04.2012 © dbi services
  • 3. Introductionwhat is your migration? You have SQL Server You have another RDBMS3 www.dbi-services.com 26.04.2012 © dbi services
  • 4. IntroductionSQL Server generation 7.0 2000 2005 2008/R2 2012 Migration between distant generations are more difficult Only 2 generations away for a migration:  Migration from 2000 to 2012 requires an intermediate step4 www.dbi-services.com 26.04.2012 © dbi services
  • 5. dbi servicesMigration to SQL Server 2012 Agenda i. Introduction ii. Why? iii. How? iv. After… v. Conclusion5 www.dbi-services.com 26.04.2012 © dbi services
  • 6. Why?From SQL 2000 to 2005 Solid offering for departmental and mid-market IT and enhanced enterprise data platform:  SQL Server Management Studio  High Availability: Database mirroring, piecemeal restore, indexation online  Partitioning (tables and indexes)  XQuery and CLR  Snapshot isolation  Service broker © dbi services
  • 7. Why?From SQL 2005 to 2008 Comprehensive data platform solution for the enterprise:  Resource governor  Transparent data encryption  Auditing  Data and backup compression  Policy-based management  New data types (spatial, dates, and time)  Filestream  New cube designer  Write-back to MOLAP  SSAS performance and scale © dbi services
  • 8. Why?From SQL 2008 to 2008R2 Comprehensive, integrated data management and business intelligence (BI):  PowerPivot for Microsoft SharePoint  Report Builder 3.0  Support for up to 256 logical processors  Master data services  Multi-server management  Data-tier application component (DAC)  Complex event processing  System preparation  Unicode compression © dbi services
  • 9. Why?From SQL 2008R2 to 2012 Facility to manage High availability, performance features:  AlwaysOn  Windows Server Core support  ColumnStore Index  Visual Studio 2010 & SQL Data Tools  FileTable  Contained Databases  Sequences, new functions…  PowerView  MDS, DQS © dbi services
  • 10. Why?SQL Server & OS SQL Server 2000:  Not available of Windows 2008 & 2008 R2 SQL Server 2005:  Windows 2000 SP4, 2003 SP1 & 2008(SP2 for SQL Server) SQL Server 2008:  Windows 2003/R2 SP2, 2008 & 2008 R2(SP1 for SQL Server) SQL Server 2008 R2:  Windows 2003/R2 SP2, 2008 SP2 & 2008 R2 SQL Server 2012:  Windows 2008 SP2 & 2008 R2 SP1  Windows 2008 R2 SP1 server Core © dbi services
  • 11. Why?Microsoft supportSQL Version Mainstream Support Extended SupportSQL Server 2000 SP4 08.04.2008 09.04.2013SQL Server 2005 SP4 12.04.2011 12.04.2016SQL Server 2008 14.01.2014 08.01.2019SQL Server 2008 R2 14.01.2014 08.01.2019Windows Version Mainstream Support Extended SupportWindows Server 2000 30.06.2005 13.07.2010Windows Server 2003 13.07.2010 17.07.2015Windows Server 2008 09.07.2013 10.07.2018Windows Server 2008 R2 09.07.2013 10.07.2018 © dbi services
  • 12. dbi servicesMigration to SQL Server 2012 Agenda i. Introduction ii. Why? iii. How? iv. After… v. Conclusion12 www.dbi-services.com 26.04.2012 © dbi services
  • 13. How? Microsoft Assessment and Planning MAP version 6.5 Functions  Discovery and inventory  Database Consolidation Appliance  SQL Server Licencing  Detail reporting Link:http://technet.microsoft.com/en-us/solutionaccelerators/dd537572.aspx © dbi services
  • 14. How?SQL Server updatePlatformchange? Db granular control? Fallback ? parallel versions ? Parallel update Direct update © dbi services
  • 15. How?Direct update SQL Server 2008 R2: Since 2000 SP4, 2005 SP2 & 2008 SQL Server 2012: Since 2005 SP2, 2008 & 2008 R2 Simple  little control Fast  non-granular Same server for  Downtime applications  No fallback (need a Update System Datas reinstall) © dbi services
  • 16. How?Direct update Prerequisites Binaries BEGIN Check installation installation redirects Stop services to Single user Attach StopServices the new Start resource db Services versionRestart Update all Update Delete old ENDservices databases Scripts binaries © dbi services
  • 17. How?Parallel update New instance or Server Backup/restore or attach/detach Change platform  Complex Can be tested  Volumes copy Db granularity  Change instance or/and Fallback server name © dbi services
  • 18. How?Preparation checklist Schedule Known your applications Document and analyze the source platform Test and compare the application’s behavior Document the scenario and the migration procedure Script and automate the migration Test the scenario  and test turning back Check your backups "I love it when a plan comes together" © dbi services
  • 19. How?Preparation Security: users/logins mapping  ALTER USER user WITH LOGIN = login  Clonage : http://support.microsoft.com/kb/918992 Transfer SQL Agent jobs  Script or SSIS job  Maintenance plan DTS / SSIS  Verify / Revise / Recopy  Migrate DTS to SSIS package Others  Stored procedure in master  SQL Mail © dbi services
  • 20. How?SQL Server Upgrate Advisor Analysis of several components, including DTS Analysis of traces or SQL queries files Displays a detailed report Provides actions to take before and after the update ... But does not replace the test © dbi services
  • 21. How?Documentation Uses Tools  SQLDiag.exe  Sp_configure, sp_dboption  storage, network, security configuration SQL Agent Job DTS / SSIS Performances monitoring  Perfmon  SQL Profiler  Application’s response time © dbi services
  • 22. dbi servicesMigration to SQL Server 2012 Agenda i. Introduction ii. Why? iii. How? iv. After… v. Conclusion22 www.dbi-services.com 26.04.2012 © dbi services
  • 23. After...Tests before migration Is essential  Migration changes the performance of my queries and stored Procedures in good…and sometimes in bad! An update change your RDBMS Engine  The optimizer behavior is different  Query plans are different  Procedure’s cache management is different © dbi services
  • 24. After...Analysis Tools SQL Profiler  Capture activity  Replay and recapture RML Utilities (Traces from 2000 to 2008R2 not 2012)  ReadTrace  Replay & Reports Distributed Replay (Traces from 2005 to 2012)  The optimizer behavior is different  Query plans are different  Procedure’s cache management is different © dbi services
  • 25. After...Improve performances Update statistics (FULL SCAN if possible) Review or delete query hints Rewrite queries Measure tempdb usage Check query plans, using the DTA Use the new features  Partionning  Columns Store index, filtered indexes © dbi services
  • 26. After...Checklist Review all log (eventlogs, errorlogs) Check the integrity  DBCC CHECKDB ( For SQL 2000: DBCC UPDATEUSAGE) Check the scheduled tasks and maintenance plans Check the security Update statistics Reconfigure and use the new features Perform validation tests, including fallback After validation: decommission / uninstall the old servers © dbi services
  • 27. dbi servicesMigration to SQL Server 2012 Agenda i. Introduction ii. Why? iii. How? iv. After… v. Conclusion27 www.dbi-services.com 26.04.2012 © dbi services
  • 28. ConclusionSQL Server Migration Assistant Free download For Sybase, Oracle, MySQL or Access Migrate to 2005, 2008/R2, 2012 or Azure Provide an estimate report Automates main operations  Data types mapping  Objects Migration  Data Migration © dbi services
  • 29. ConclusionSSIS Packages for Data Migration Generator Develop by Pascal Belaud, Microsoft France Automatic generation of SSIS Packages for data’s transfer from all OLE DB connector to SQL Server Free on codeplex: http://SSISGenerator.codeplex.com © dbi services
  • 30. ConclusionSQL Server Analysis Services Structural changes  No virtual cubes  No virtual dimensions Direct upgrade supported Parallel upgrade with MigrationWizard.exe  Install backward compatibility © dbi services
  • 31. ConclusionSQL Server Reporting Services Since Reporting Services 2008  Not on IIS  uses native http.sys Direct upgrade supported Manually Upgrading to a SQL database using SSRS 2000 in remote © dbi services
  • 32. dbi servicesAny Questions? Please Do Ask! Antonio De Santo Consultant Stéphane Haby Consultant „We look forward to working with you!“32 www.dbi-services.com 26.04.2012 © dbi services

×