Upgrading SQL Server Rob Carrol, Microsoft January 29, 2009.

Slides:



Advertisements
Similar presentations
SSRS 2008 Architecture Improvements Scale-out SSRS 2008 Report Engine Scalability Improvements.
Advertisements

Performance and Scalability. Optimizing PerformanceScaling UpScaling Out.
SQL Server 2005/8/R2 Instance SQL Server 2014 Instance.
Number of database apps Number of DBA’s Hardware computing capacity.
Keith Burns Microsoft UK Mission Critical Database.
Matt Masson| Senior Program Manager
Visit our Focus Rooms Evaluation of Implementation Proposals by Dynamics AX R&D Solution Architecture & Industry Experts Gain further insights on Dynamics.
Windows Server 2008 R2 Migration Tools Migration Guidelines Windows Server Migration Migrating Server Roles ADDS DNS DHCP Print File.
Jeremy Boyd Director – Mindscape MSDN Regional Director
BARBARIN DAVID SQL Server Senior Consultant Pragmantic SA SQL Server Denali : New administration features.
Understanding Active Directory
Gopal Ashok Program Manager Microsoft Corp Session Code: DAT 312.
Upgrading to SQL Server 2012 “Done Right” Dandy Weyn DBI335.
Using The WDK For Windows Logo And Signature Testing Craig Rowland Program Manager Windows Driver Kits Microsoft Corporation.
Time SQL Server 2012 Highlights and ColumnStore Index09:00 – 10:15 AlwaysOn and Contained Databases10:45 – 12:15 PowerPivot and PowerView (BI)13:00 –
Purpose Intended Audience and Presenter Contents Proposed Presentation Length Intended audience is all distributor partners and VARs Content may be customized.
Stephan Hurni Consultant Trivadis AG, SQL Server notes from the field.
Using the WDK for Windows Logo and Signature Testing Craig Rowland Program Manager Windows Driver Kits Microsoft Corporation.
Upgrading to SQL Server 2008 Graeme Scott Technology Solution Professional Microsoft Corporation.
Speaker Name 00/00/2013. Solution Requirements.
LegendCorp What is System Center Virtual Machine Manager (SCVMM)? SCVMM at a glance Features and Benefits Components / Topology /
Exchange Deployment Planning Services Exchange 2010 Complementary Products.
Andrew Fryer Evangelist Microsoft UK
Course Topics Administering SQL Server 2012 Jump Start 01 | Install and Configure SQL Server04 | Manage Data 02 | Maintain Instances and Databases05 |
Data Management Conference Performance & Scalability Simon Sabin London September 29th.
Praveen Srivatsa Director| AstrhaSoft Consulting blogs.asthrasoft.com/praveens |
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.
Comprehensive Flexible Global Storage and Search Responsive Available Secure Manageable Federation Coordination Consolidation Transformation Synchronization.
SQL Database Management
Greg Seidel Technology Specialist – SQL Server
Convergence /6/2018 © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Data Platform and Analytics Foundational Training
System Center Marketing
System Center Marketing
Deployment Planning Services
What’s New in SQL Server 2016 Master Data Services
Business Connectivity Services in SharePoint 2010 and Office 2010
7/2/2018 2:39 AM BRK2413 Customer lifecycle with LCS: Dynamics 365 for Finance and Operations, Enterprise edition Manali Dongre Senior Program Manager.
Optimizing Microsoft OneDrive for the enterprise
7/28/ :17 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or.
Installation and database instance essentials
SQL Server Data Tools for Visual Studio Part I: Core SQL Server Tools
Introduction to SQL Server Management for the Non-DBA
Required 9s and data protection: introduction to sql server 2012 alwayson, new high availability solution Santosh Balasubramanian Senior Program Manager.
Test Upgrade Name Title Company 9/18/2018 Microsoft SharePoint
Upgrading to SQL Server 2016
System Center 2012 SP1 Operations Manager
11/10/2018 Desktop Virtualization Corey Hynes Kyle Rosenthal President Technical Lead HynesITe Inc Spider Consulting @windowspcguy.
Your Data Any Place, Any Time
11/13/2018 3:26 PM MDC317B Complex Maintenance with Configuration Manager and Orchestrator – Patching Clusters Neil Peterson © 2013 Microsoft Corporation.
Microsoft Virtual Academy
Migrating your SQL Server Instance
Microsoft Virtual Academy
Microsoft Virtual Academy
12/9/2018 Desktop Virtualization Corey Hynes Kyle Rosenthal President Technical Lead HynesITe Inc Spider Consulting @windowspcguy.
Stephen Baron Sr. Program Manager Lead Microsoft Corporation
From DTS to SSIS, Redesign or Upgrade
TechEd /15/2019 5:30 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Microsoft Virtual Academy
Upgrading Your Private Cloud with Windows Server 2012 R2
Building and running HPC apps in Windows Azure
Microsoft Virtual Academy
4/15/2019 © 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks.
Andrew Fryer Microsoft UK
Service Template Creation from the Ground Up
Service Template Creation from the Ground Up
Microsoft 365 Business Technical Fundamentals Series
日本初公開!? Vista の新機能を実演 とっちゃん わんくま同盟 7/23/2019 9:09 AM
Microsoft Virtual Academy
Microsoft Virtual Academy
Presentation transcript:

Upgrading SQL Server Rob Carrol, Microsoft January 29, 2009

Why Upgrade?

9/23/2018 Upgrading SQL Server January 29, 2009 Support for SQL Server 2000 “A recent survey of SQL Server Magazine readers showed that 81 percent are still on SQL Server 2000 and only 40 percent are using SQL Server 2005.” SQL Server 2000 Mainstream Support ENDED 8th April 2008 © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Transparent Data Encryption External Key Management Data Auditing Upgrading SQL Server January 29, 2009 Transparent Data Encryption External Key Management Data Auditing Pluggable CPU Transparent Failover for Database Mirroring Policy Management Server Group Management Streamlined Installation Enterprise System Management Performance Data Collection System Analysis Data Compression Query Optimization Modes Resource Governor Entity Data Model LINQ Visual Entity Designer Entity Aware Adapters SQL Server Change Tracking Synchronized Programming Model Visual Studio Support SQL Server Conflict Detection FILESTREAM data type Integrated Full Text Search Sparse Columns Large User Defined Types Date/Time Data Type LOCATION data type SPATIAL data type Virtual Earth Integration Partitioned Table Parallelism Query Optimizations Persistent Lookups Change Data Capture Backup Compression MERGE SQL Statement Data Profiling Enterprise Reporting Engine Internet Report Deployment Block Computations Scale out Analysis BI Platform Management Export to Word and Excel Author reports in Word and Excel Report Builder Enhancements TABLIX Rich Formatted Data Personalized Perspectives … and more

Supported Upgrade Paths Upgrading SQL Server January 29, 2009 Supported Upgrade Paths Full list of supported upgrade paths available in BOL: http://msdn.microsoft.com/en-us/library/ms143393.aspx

In Place Upgrade Pros Easier, mostly automated Upgrading SQL Server January 29, 2009 In Place Upgrade Pros Easier, mostly automated Generally fast overall process Requires no additional hardware Applications remain pointing to same server/database name Cons Less granular control over upgrade process Instance remains offline during part of upgrade Not best practice for all components Complex rollback strategy First thing you have to decide is whether to go for an In-place upgrade or side-by-side. The Upgrade can be done in two phases. First phase: perform actions independent of the existing instance. MSI files lay down SxS files for the existing instance Second phase: take the name of the existing instance and recycled objects from old point where the old instancename is given to the new instance name old instance at this point is being unnamed - Point Of No Return (PONR) Stating this point, you no longer can connect to the “old” instance; it is basically no longer useful to the user. Approximately 90% of the upgrade process is performed prePONR.

Side by Side Upgrade Pros More granular control over upgrade process 9/23/2018 Upgrading SQL Server January 29, 2009 Side by Side Upgrade Pros More granular control over upgrade process Can be used to perform test migration Ability to run systems side-by-side for testing and verification Relatively straightforward rollback Strategy Can leverage failover/switchover to reduce downtime Cons Usually require additional hardware Server/database name changes Not practical for VLDB unless utilizing SAN © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Upgrade tools

9/23/2018 Upgrading SQL Server January 29, 2009 Upgrade Advisor Analyzes SQL Server 2000/2005 components, databases, trace files and script files Read-only operation, can be CPU intensive Supports remote execution Supports default and named instance Requires .NET framework 2.0 sp1 or later Download or available with SQL2008 Media © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Upgrade Assistant (Application Compatibility Testing) Upgrading SQL Server January 29, 2009 Upgrade Assistant (Application Compatibility Testing) Automated ‘playback’ / simulation tool Developed in conjunction with Scalability Experts Available for Testing upgrades to 2005 & 2008 ACT for SQL Server 2008 available here: http://ssua.scalabilityexperts.com/

Best Practice Analyzer (SQL BPA) Upgrading SQL Server January 29, 2009 Best Practice Analyzer (SQL BPA) Run the SQL Server Best Practices Analyzer (BPA) against your current legacy instances of SQL Server If bad or questionable practices exist, you could address them before the upgrade Using best practices on the legacy SQL Server systems first will help ensure a smoother upgrade

System Monitor SQL Server: Deprecated Features Object Upgrading SQL Server January 29, 2009 System Monitor SQL Server: Deprecated Features Object Monitors whether your application is submitting commands to the SQL Server 2008 Database Engine that are scheduled for removal from SQL Server in future releases You should remove deprecated commands from SQL Server 2008 applications after they are detected System Monitor records the total number of times the deprecated feature was encountered since SQL Server 2008 was last started

Upgrading SQL Server January 29, 2009 Upgrading DTS Use the DTS Package Migration Wizard to move packages from DTS to SSIS format Package migration will usually succeed unless the packages contain unregistered objects or use scripting Packages that contain only tasks and features that are present in SSIS will migrate successfully You can preserve packages that contain non-SSIS DTS tasks and features by encapsulating them in an Execute DTS 2000 Package task SQL Server 2008 still provides support for running DTS packages. Support for Data Transformation Services (DTS) in SQL Server 2008 in SQL Server 2008 Books Online http://go.microsoft.com/fwlink/?LinkID=132618 DTS is deprecated, so packages should be moved to SSIS as soon as possible DTS Migration Tool available from http://dtsxchange.com

Upgrading SQL Server January 29, 2009 DEMO: Upgrade Tools

Upgrade Planning

Outline Upgrade Plan Identify Upgrade Requirements Upgrading SQL Server January 29, 2009 Outline Upgrade Plan Identify Upgrade Requirements Verify System Compatibility Run the System Configuration Checker from the SQL Server 2008 Installation Center landing page Run Upgrade Advisor Perform Application Compatibility Testing Pre-Upgrade Considerations Determine Appropriate Upgrade Strategy Upgrade Process Post Upgrade Considerations

Pre Upgrade Preparation Upgrading SQL Server January 29, 2009 Pre Upgrade Preparation Document existing solution SQL Server Feature Discovery Report Capture performance baseline data Develop criteria and unit / verification tests Test upgrade on pre-production/development system first Optional: capture query plans for complex queries Ensure Clean Environment Backup old instance / database and Verify it! Loop in Windows Administrators, SAN Administrators and Network Operations Optional: Access to Support Document existing SQL Server solution sp_configure SQLDIAG.EXE sp_dboption SAN configurations Network configurations Security configurations Capture performance baseline data System level (e.g. perfmon, waitstats, etc…) Application level (e.g. query response, concurrent users, etc…) Develop criteria and unit / verification tests Can leverage existing user acceptance test infrastructure but be sure to update relevant components Optional: capture query plans for complex queries Ensure Clean Environment Check Database Consistency DBCC CHECKDB Consider need for shrinking databases DBCC SHRINKDATABASE DBCC SHRINKFILE Consider rebuilding indexes For faster manual copy if taking side-by-side approach Backup old instance / database Verify Backup! Loop in Windows Administrators, SAN Administrators and Network Operations Center Ensure no collisions with other activities NOC does not re-start servers, SAN admin pager doesn’t go off Access to SME Emergency support contacts

Preparing for a Smooth Upgrade – Best Practices Upgrading SQL Server January 29, 2009 Preparing for a Smooth Upgrade – Best Practices Begin by identifying your upgrade requirements Select the appropriate upgrade strategy Run Upgrade Advisor Make a checklist of all issues, and then resolve all that you can before you upgrade Develop criteria and tests that you will use to determine whether the upgrade was successful Formulate a rollback plan Perform the upgrade for each component you are moving to SQL Server 2008 Perform post-upgrade steps, including: Update statistics Reconfigure log shipping Rebuild full-text catalogs and indexes Change Compatibility Level Download and install updates ! Prepare to implement new features

Presentation Title September 23, 2018 Additional Considerations Before Upgrading the Database Engine to SQL Server 2008 If you are upgrading a 64-bit edition of SQL Server, you need to upgrade Analysis Service first and then the Database Engine Run the appropriate DBCC commands to ensure that both the system and user databases are in good health Make sure the system databases are configured to autogrow Disable all startup stored procedures as the upgrade process may restart the server. If Replication is enabled, stop replication during the upgrade process. Conduct a rolling upgrade if Database Mirroring is used. First upgrade the mirrored instance, failover services, and then upgrade the principal instance (which is now the mirror). It is also recommended to remove the witness and change the operation mode to high safety during the upgrade It is not possible to upgrade a SQL Server 2000 system running log shipping to SQL Server 2008 In SQL Server 2000, Log Shipping was established with a Database Maintenance Plan. The installation in SQL Server 2005 and SQL Server 2008 no longer uses a maintenance plan to implement Log Shipping

Troubleshooting

Troubleshooting a Failed Upgrade Upgrading SQL Server January 29, 2009 Troubleshooting a Failed Upgrade Pre-setup issues: Verify the log files for pre-setup errors %Program files%\Microsoft sql server\100\Setup bootstrap\Log\Date Time Pre-setup errors are typically logged in the Summary.txt file and in the Detail.txt file Issues that occur after an unsuccessful upgrade Search the Details.txt log file for errors Resolve the issue appropriately, and then uninstall SQL Server 2008 as detailed in the Summary.txt log file The old instance is no longer running and that the new instance is not available Upgrade process has reached Point of No Return The Summary.txt log file displays information that you must use to repair your installation. Resolve the issue and repair: Setup.exe /q /ACTION=Repair /INSTANCENAME=instancename Repair must be done at the command line

Some Upgrade Gotchas/Known Issues Upgrading SQL Server January 29, 2009 Some Upgrade Gotchas/Known Issues Upgrade to SQL 2008 can fail if you renamed the ‘sa’ account http://blogs.msdn.com/psssql/archive/2008/09/10/upgrade-for-sql-server-2008-can-fail-if-you-have-renamed-the-sa-account.aspx This bug has been fixed and will be released with SP1 (date - ??/09 ) Upgrade to SQL Server 2008 fails in a multi-node cluster environment when a remote node is paused http://support.microsoft.com/kb/955509 Resume the passive nodes to allow for the group to fail over during the upgrade process by using the Cluster Administrator or the Cluster.exe program. If the SQL resources are offline, bring these resources online. Perform the upgrade to SQL Server 2008

Further Resources Get SQL Server 2008 (UA included) Upgrading SQL Server January 29, 2009 Further Resources Get SQL Server 2008 (UA included) http://www.microsoft.com/sql/2008/default.mspx Get Application Compatibility Testing Tool (Upgrade Assistant) http://ssua.scalabilityexperts.com/ Try DTS Migration Tool http://dtsxchange.com/ SQL Server 2008 Upgrade Technical Reference Guide http://www.microsoft.com/downloads/details.aspx?FamilyID=66d3e6f5-6902-4fdd-af75-9975aea5bea7&displaylang=en How to troubleshoot SQL Server 2008 Setup issues http://support.microsoft.com/kb/955396 Talk to Us ! robert.carrol@microsoft.com or http://blogs.technet.com/rob http://sqlblogcasts.com/blogs/thepremiers