Microsoft SQL Server 2005 Upgrade Planning Kevin Ashby Microsoft EMEA +44 79 68 83 9696.

Slides:



Advertisements
Similar presentations
Michael Platt Architect, Microsoft UK
Advertisements

Yukon – What is New Rajesh Gala. Yukon – What is new.NET Framework Programming Data Types Exception Handling Batches Databases Database Engine Administration.
CRM 3.0 Whats New in Microsoft CRM 3.0 – Technical.
Module 13: Performance Tuning. Overview Performance tuning methodologies Instance level Database level Application level Overview of tools and techniques.
Mecanismos de alta disponibilidad con Microsoft SQL Server 2008 Por: ISC Lenin López Fernández de Lara.
SQL Server Replication
Database Optimization & Maintenance Tim Richard ECM Training Conference#dbwestECM Agenda SQL Configuration OnBase DB Planning Backups Integrity.
Building Enterprise Applications Using Visual Studio ®.NET Enterprise Architect.
Your Data Any Place, Any Time Overview. Amazing Journey.
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
SQL Server 2005 Database Engine Sommarkollo Microsoft.
Welcome to the Minnesota SharePoint User Group November 11 th, 2009 SharePoint 2010 Administration Wes Preston, Brian Caauwe.
Microsoft SQL Server 2005 Upgrade Planning Melville Thomson IT Pro Evangelist
AGENDA Tools used in SQL Server 2000 Graphical BOL Enterprise Manager Service Manager CLI Query Analyzer OSQL BCP.
Media Partners.
Managing and Monitoring SQL Server 2005 Shankar Pal Program Manager SQL Server, Redmond.
Passage Three Introduction to Microsoft SQL Server 2000.
A Technical Overview of Microsoft SQL Server 2005 Melville Thomson IT Pro Evangelist (UK)
1 Chapter Overview Transferring and Transforming Data Introducing Microsoft Data Transformation Services (DTS) Transferring and Transforming Data with.
VMware vCenter Server Module 4.
SQL Server 2005 SP2 Israeli SQL Server User Group March 2005 Ami Levin
Enterprise Reporting with Reporting Services SQL Server 2005 Donald Farmer Group Program Manager Microsoft Corporation.
Update your servers to service pack 2. Ensure that the environment is fully functioning. Migrate to 64 bit servers is necessary. REVIEW UPGRADE BEST PRACTICES.
What’s New in SQL Server 2005 From a Developer’s Perspective.
SQL Server Express Scott Baldwin Associate Consultant - Readify Prerequisites for presentation: I assume you know: 1).Net Development 2) Database Experience.
Migration XenDesktop 7. © 2013 Citrix | Confidential – Do Not Distribute Migration prerequisites Set up a XenDesktop 7 Site, including the site database.
Chapter-4 Windows 2000 Professional Win2K Professional provides a very usable interface and was designed for use in the desktop PC. Microsoft server system.
Maintaining a Microsoft SQL Server 2008 Database SQLServer-Training.com.

SQL Server Integration Services (SSIS) Presented by Tarek Ghazali IT Technical Specialist Microsoft SQL Server (MVP) Microsoft Certified Technology Specialist.
DBSQL 14-1 Copyright © Genetic Computer School 2009 Chapter 14 Microsoft SQL Server.
1 SQL Server 2000 Administration Kashef Mughal MSB.
Chokchai Junchey Microsoft Product Specialist Certified Technical Training Center.
Learningcomputer.com SQL Server 2008 – Administration, Maintenance and Job Automation.
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.
Module 6: Implementing SQL Server Replication in an Enterprise Environment.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
Upgrading to SQL Server 2008 Graeme Scott Technology Solution Professional Microsoft Corporation.
1 Chapter Overview Preparing to Upgrade Performing a Version Upgrade from Microsoft SQL Server 7.0 Performing an Online Database Upgrade from SQL Server.
SQL Server 2012 Session: 1 Session: 3 Introduction to SQL Server 2012 Data Management Using Microsoft SQL Server.
1 Chapter Overview Performing Configuration Tasks Setting Up Additional Features Performing Maintenance Tasks.
Week #2 Objectives Upgrade and Migrating to Windows 7 Image-Based Installation of Windows 7 Application Compatibility.
SQL School is strongly committed to provide COMPLETE PRACTICAL REALTIME Trainings on SQL Server Technologies – Dev, SQL DBA, MSBI (SSIS, SSAS, SSRS) and.
Andrew Fryer Evangelist Microsoft UK
Features Of SQL Server 2000: 1. Internet Integration: SQL Server 2000 works with other products to form a stable and secure data store for internet and.
Cognos 8 BI Configuration, Administration, and Upgrade Cognos 8 BI.
Upgrading to SQL Server 2005 Melville Thomson IT Pro Evangelist Microsoft.
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.
SQL SERVER MAINTENANCE PLANS Kat
ITMT 1371 – Window 7 Configuration 1 ITMT Windows 7 Configuration Chapter 8 – Managing and Monitoring Windows 7 Performance.
ITMT 1371 – Windows 7 configuration Chapter 2: Installing Windows 7 ITMT 1371 – Windows 7 Configuration.
1 Copyright © 2008, Oracle. All rights reserved. Repository Basics.
9 Copyright © 2004, Oracle. All rights reserved. Getting Started with Oracle Migration Workbench.
Database Development with SQL Server Data Tools (SSDT) Björn Eriksen, Architect Evangelist DPE Microsoft
Getting the Most from SQL Server 2005 Don Vilen Program Manager SQL Server Microsoft Corporation.
SQL Database Management
Building Enterprise Applications Using Visual Studio®
Installation The Intercompany Integration Solution for SAP Business One Version 2.0 for SAP Business One 9.1 Welcome to the course on the installation.
Microsoft® SQL Server™ 2005 (April CTP) Enterprise Data Management for the DBA Barnaby Jeans IT Pro Advisor Microsoft Canada
Lead SQL BankofAmerica Blog: SQLHarry.com
Business Connectivity Services in SharePoint 2010 and Office 2010
A Technical Overview of Microsoft® SQL Server™ 2005 Beta 2
Michael Mast Senior Architect
Migration to SharePoint 2013
Installation The Intercompany Integration Solution for SAP Business One Version 2.0 for SAP Business One 9.1 Welcome to the course on the installation.
From DTS to SSIS, Redesign or Upgrade
AlwaysOn Availability Groups
Chapter 11 Managing Databases with SQL Server 2000
Getting Data Where and When You Want it with SQL Server 2005
Upgrading to SQL Server 2005
Presentation transcript:

Microsoft SQL Server 2005 Upgrade Planning Kevin Ashby Microsoft EMEA

Why Upgrade? Database Engine  Service Broker  HTTP Access  Database Tuning Advisor  Enhanced Read ahead & scan  Indexeswith Included Columns  Multiple Active Result Sets  Persisted Computed Columns  Try/Catch in T-SQL statements  Common Table Expressions  Server Events  Snapshot Isolation Level  Partitioning  Synonyms  Dynamic Management Views.NET Framework  Common Language Runtime Integration  CLR-based Types, Functions, & Triggers  SQL Server.NET Data Provider Data Types  CLR-based Data Types  VARCHAR(MAX), VARBINARY(MAX)  XML Datatype Database Failure and Redundancy  Fail-over Clustering (up to 8 node)  Database Snapshots  Enhanced Multi-instance Support XML  New XML data type  XML Indexes  XQUERY Support  XML Schema (XSD) support  FOR XML PATH  XML Data Manipulation Language  SQLXML 4.0 Database Maintenance  Backup and Restore Enhancements  Checksum Integrity Checks  Dedicated Administrator Connection  Dynamic Configuration AWE  Highly-available Upgrade  Online Index Operations  Online Restore Management Tools  MDX & XML/A Query Editor  Maintenance Plan Designer  Source Control Support  Profiler access to non-sa  SQLCMD Command Line Tool  Database Mail Performance Tuning  Profiling Analysis Services  Exportable Showplan & Deadlocks  Profiler Enhancements  New Trace Events Full-text Search  Backup/Restore includes FT catalogs  Multi-instance service SQL Client.NET Data Provider  Server Cursor Support  Multiple Active Result Sets Security  Catalog and meta-data security  Password policy enforcement  Fine Grain Administration Rights  Separation of Users and Schema  Surface Area Configuration Notification Services  Embed NS in existing application  User-defined match logic  Analysis Services Event Provider Replication  Seamless DDL replication  Merge Web Sync  Oracle Publication  Peer to Peer Transactional replication  Merge replication perf and scalability  New monitor and improved UI Analysis Services and Data Mining  Analysis Management Objects  Windows Integrated Backup and Restore  Web Service/XML for Analysis  Integration Services and DM Integration  Eight new Data Mining algorithms  Auto Packaging and Deployment  Migration Wizard Integration Services  New high performance architecture  Visual design and debugging environment  Extensible with custom code and scripts  XML task and data source  SAP connectivity  Integrated data cleansing & text mining  Slowly changing dimension wizard  Improved flow control  Integration with other BI products Reporting Services  Report Builder  Analysis Services Query Designer  Enhanced Expression Editor  Multi-valued Parameters  Date Picker  Sharepoint Web Parts  Floating Headers  Custom Report Items  XML Data Provider

Agenda Definitions What can be upgraded How to upgrade Upgrade Plan Pre-upgrade Upgrade Execution Post-upgrade In-place Upgrade vs. Migration Upgrading Log Shipping Upgrade Tips and Best Practices

Definitions Upgrade (or in-place upgrade): –Updates an existing installation while preserving user data –Instance name remains the same after upgrade –Automated process Migration (or side-by-side migration): –Starts with a new installation –New & old instance reside side-by-side –Objects are copied from the old to new instance –Mostly a manual process

In-place Upgrade SQL Server 7.0/2000 Instance: Foo SQL Server 2005 Instance: Foo Upgrade 1.Take users off the system 2.Run Upgrade Advisor 3.Identify/resolve problem/compatibility issues 4.Run setup.exe and start the upgrade

Compare and Verify SQL Server 7.0/2000 Instance: Foo SQL Server 2005 Instance: Bar Side-by-side Migration Verified! Remember to run the Upgrade Advisor

What can be upgraded or migrated? Versions –SQL Server 7.0 (latest service pack) –SQL Server 2000 (latest service pack) Components –Database Engine Includes sub-components like SQL Agent, Full-text, Tools, etc. –Analysis Services –Reporting Services –Notification Services –Migration of Data Transformation Services to Integration Services Editions –Desktop, Workgroup, Personal, Standard, Developer, Enterprise Platforms –32-bit & 64-bit (IA64 and x64) Languages –All SQL Server 7.0 and SQL Server 2000 released languages

Upgrade Plan Smooth upgrade requires a good plan Devise an upgrade plan by grouping upgrade tasks into: 1.Pre-upgrade tasks 2.Upgrade execution tasks 3.Post-upgrade tasks –0 day, 30 day, 90+ day Exercise upgrade plan –Test it more than once!

Pre-upgrade: Prepare Your Environment Study SQL Server 2005 minimum hardware & software requirements Get an inventory of your applications & legacy systems –Releases, Components, SKU’s, Platforms Opt for the same or a compatible edition –Check features in each SQL Server 2005 SKU –Beware of cross-SKU upgrade matrix Record benchmarks –Functional, Performance, Stress Run Upgrade Advisor –Examine issues reported by Upgrade Advisor –Fix or work around backward compatibility issues

Pre-upgrade: Backward Compatibility Some features are discontinued: –They do not appear in SQL Server 2005 Example: Undocumented system stored procedures, Virtual cube, Virtual dimension… Some are being deprecated: –They won’t be supported in the release following SQL Server 2005 Example: SQL Mail, Calculated Cell, Cell evaluation list… Some features have a different behavior –Example: Database Engine catalog security Some editions have a different feature set –Example: Express does not have SQL Server Agent Check Books Online for a full list as well as replacements and techniques Run Upgrade Advisor before any migration or upgrade

Pre-upgrade: Upgrade Advisor Tool Improves the SQL Server 2005 upgrade experience Avoids surprises during or after upgrade Analyzes SQL Server 2000 and SQL 7.0 instances Analyzes objects on server; script and trace files Performs read-only operation Provides a report for detected issues Presents guidance on when detected issues need to be fixed Describes how to fix or work around issues Has links to documentation for additional content Download from web

Pre-upgrade Upgrade Advisor Report Upgrade Post-Upgrade Ready for upgrade Upgrade Advisor

Upgrade Execution Choose an in-place upgrade or migration strategy for each component Understand upgrade and migration tools for each component Check databases consistency Back up old instance –Verify backup Monitor upgrade progress via setup log Be prepared to execute your back ou t plan

Pros & Cons of Migration Pros –Migration provides more granular control over the upgrade process –Having new and old instances side-by-side helps with testing & verification –Legacy instance remains online during migration –Flexibility to implement migration with failover Cons –May require new or additional hardware resources –Applications need to be directed to new instance

Pros & Cons of Upgrade Pros –Easier, faster, less headache for small systems –Requires no additional hardware –Applications remain pointing to old instance Cons –Less granular control over upgrade process –Instance remains offline during part of upgrade –Not best practice for all components Analysis Services cubes are recommended to be migrated

Upgrade & Migration Tools Setup is in-place upgrade tool –Database Engine –Analysis Services –Reporting Services Wizards for side-by-side migration –Analysis Services –DTS to Integration Services Specific configuration tools for migration –Reporting Services –Notification Services Upgrade Advisor is upgrade analysis tool for all components

Upgrading Database Engine Setup.exe performs the in-place upgrade Several migration techniques for Database Engine: –Detach/Attach –Backup/Restore –Copy Database Wizard, DTS –Manual scripts, BCP

Upgrading Replication Publisher Subscriber Distributor Subscriber Distributor can be any version as long as it is greater than or equal to the Publisher version Publisher can be any version as long as it less than or equal to the Distributor version Read-only Subscriber to a transactional publication can be any version within two versions of the Publisher version Updatable Subscriber to a SQL Server 2005 transactional publication can be any version equal to or greater than SQL Server 2000 SP3 Subscriber to a merge publication can be any version less than or equal to the Publisher version Distributor Do Distributor First!

Upgrading Legacy SQL Server Tools SQL Server Agent has a new security model (proxy account) Registered Servers can be upgraded to Management Studio Database Diagram are upgraded into the new SQL Server 2005 format Database maintenance plans can be migrates to new Maintenance Plan packages

Post-upgrade Perform post-upgrade tasks on Upgrade Advisor report –Examples: Update statistics, build cubes –Change database COMPATIBLITY level –Reconfigure log shipping Execute upgrade testing Verify Agent jobs and maintenance tasks Bring system online Monitor system activity

Upgrade Tips and Best Practices You can reduce upgrade down time –Pre-install Setup pre-requisites Microsoft.NET Framework 2.0 Microsoft SQL Native Client Setup support files If you are planning a migration using Copy Database Wizard –Before upgrade, place the database in single user mode –make sure that no applications or services are trying to access the database –Do not use read-only mode -- this will result in an error –Cannot rename database during operation Be aware of SQL Server 2005 reduced surface area –Some services & features are disabled on new installations –Use Surface Area Configuration tools to enable or disable features & services

SS2K statistics invalid after upgrade –Update statistic will kick in automatically upon first execution of queries using sample data –Default update statistics sampling could be very small for very large tables, possibly <1% –Recommendation: manually update statistics after upgrade. Full if possible, suggest: 10% for Very Large tables. –Example: Update statistics sales.salesorder with sample 10 percent; Recommendation: Ensure you remember to run surface area configuration manager –May not recognize an important component is off by default: named pipes, Service Broker, CLR, FTS, Dedicated Administration Connection, etc. Upgrading to SQL Server 2005 the biggest findings

Recommendation: Specify the WITH keyword when using table hints –Optional in SS2K / Mandatory with SS2005 and therefore an error will occur –Close to 25% of the problems we have seen –Example: UPDATE Production.Product WITH (TABLOCK) SET ListPrice = ListPrice * 1.10 WHERE ProductNumber LIKE 'BK-%' Recommendation: Remove references to undocumented system tables Use of keyword “sys”, now a reserved word Upgrading to SQL Server 2005 the biggest findings

Summary Upgrade has been heavily tested Please try out Upgrade Advisory and use it before upgrading Your experience should be good