22
Mark Ginnebaugh, DesignMind John R. Hanson, DesignMind

Migrating to SQL Server 2008

Embed Size (px)

DESCRIPTION

Walk through the steps of a successful migration to SQL Server 2008.Reducing database costs through consolidationVirtualizing serversCompressing dataAllocating resources more effectivelyPolicy management

Citation preview

Page 1: Migrating to SQL Server 2008

Mark Ginnebaugh, DesignMind

John R. Hanson, DesignMind

Page 2: Migrating to SQL Server 2008

Agenda

• Introductions / Logistics – Mark Ginnebaugh

• Migration Tools, Planning & Execution – John R. Hanson

– Brief Overview of SQL Server 2008

– SQL Server Feature Pack

– SQL Server Migration Assistant

– Case Study

• Intermission

• Performance Benchmarks

– SQL Server 2005 vs. 2008

• Q&A

Page 3: Migrating to SQL Server 2008

About the Presenters

DesignMind – www.designmind.com

– Microsoft Gold Certified Partner

– Based in Emeryville, CA

– Custom Software, Databases, and BI Solutions on the Microsoft Platform

– .NET, SQL Server, SharePoint

Page 4: Migrating to SQL Server 2008

John R. Hanson

Chief Applications Architect

DesignMind

Page 5: Migrating to SQL Server 2008

• Data/Backup Compression*

• Transparent Data Encryption*

• Resource Governor*

• Filtered Indexes/Statistics

• Query Optimizer / Storage Engine enhancements*

• Enhanced SQL Server Audit*

• SSRS/SSAS scalability improvements*

• Policy Based Management (DMF)

• Performance Data Collection

• Enhanced date and time support

• Transact-SQL enhancements

• Sparse column support

• Service Broker enhancements

• SSIS / SSRS / SSAS enhancements*

• Spatial Support

• Filestream Support

• Hierarchy Id Support

• CDC* & Change Tracking

• LINQ Support

• Entity Framework Support

• ADO.NET Data Services Support

Significant Application, Operational or Deployment Changes

Moderate Application, Operational, or

Deployment Changes

Minor Changes

Upgrade Resource/Benefit ComparisonBENEFIT

* Requires Enterprise Edition

Page 6: Migrating to SQL Server 2008

Delivering on the Vision

Enterprise Data Platform

• Secure, trusted platform for your data

• Optimized and predictable system performance

• Productive policy-based management of your infrastructure

Beyond Relational

• Store and consume any type of data

• Deliver Location Intelligence within your applications

Dynamic Development

• Accelerate your development with entities

• Synchronize your data from anywhere

Pervasive Insight

• Integrate all your data in the Enterprise Data Warehouse

• Reach all your users with scalable BI platform

• Empower every user with actionable insights

Page 7: Migrating to SQL Server 2008

Upgrade Technical Value Proposition

Page 8: Migrating to SQL Server 2008

Reduce Support Costs

Policy-Based Management

– Pro-active, flexible administration

– Configuration Servers

Data Collection

– Used beyond performance monitoring/tuning; e.g. workload profiling, capacity planning

Plan Guides and validation

– Predictable query behavior

Page 9: Migrating to SQL Server 2008

Important Trends Affecting SQL Server 2008 Usage

Consolidation

– Greater opportunities with tools like Resource Governor and Extended Key Management

– Providing flexible security in shared instances and shared servers

Virtualization

– Leverages Windows Server 2008 feature

– Easier to support since technologies are from single vendor

– Not just about dev/test and training

Data in the Cloud

– SQL Server Data Services

Page 10: Migrating to SQL Server 2008

SQL Server 2008 Feature Pack

• Most Recent Release: April 2009

• Collection of standalone packages that provide additional value for SQL Server 2008

• Includes

– Data Mining for Excel

– Native PHP Scripts

– BLOB Store

– System CLR Types for External Applications

– Sync Framework

– Upgrade Advisor!

– And more…

Page 11: Migrating to SQL Server 2008

SQL Server Migration Assistant

• How to make an application originally written to run on Oracle, Access or Sybase to run on Microsoft SQL Server?

• Main challenge – different SQL dialects implemented by DBMS vendors

Page 12: Migrating to SQL Server 2008

SSMA for Oracle

• Automates migration of Oracle databases to Microsoft SQL Server

→ Typically 80-90% of PL/SQL code gets converted immediately to Transact-SQL

→ Supports Oracle 8i, 9i,10g,11g

→ Target DB could be SQL Server 2005 or SQL Server 2008

→ Includes:• Migration Analyzer• Schema and Data Migrator • Migration Tester

Page 13: Migrating to SQL Server 2008

Convert theApplication

Assess the Migration Project

Migrate Schemaand Business Logic

Test the Converted Database

Test, Integrate, and Deploy

Migration Analyzer

Schema Migrator

Migrate Data

Data Migrator

Migration Tester

Runtime Converter (RTC) (to be developed)

Solution Architecture

Database Migration with SSMA

Page 14: Migrating to SQL Server 2008
Page 15: Migrating to SQL Server 2008

• Help migrate 2 clustered 32-bit SQL 2000 to clustered 64-bit SQL 2005 on new hardware with 26 user databases.

• Identify all code dependencies in over 58000 code files in over 20 applications.

• Identify all native SQL objects where deprecated terms and syntax occur, and provide code changes both as concepts and actual recoding.

• Develop and implement a test plan.

Page 16: Migrating to SQL Server 2008
Page 17: Migrating to SQL Server 2008

• SQL Profiler

• SQL Upgrade Advisor

• SQLCMD

• Quest Discovery Wizard for SQL Server

– Password Vulnerability Tool

• Red Gate SQL Compare

• Red Gate Data Compare

• SQL DB Search

• TextPad / regex

• Visual SourceSafe

• RML Utilities for SQL Server (Replay for Integration Testing)

– ReadTrace

– OStress

Page 18: Migrating to SQL Server 2008
Page 19: Migrating to SQL Server 2008

• Discover all SQL servers with dependencies

• Identify each application and their Database dependencies

• Trace activity of production workflows for as long as time and storage permit.

• Trace activity of all tests

• Use Upgrade Advisor to report on compatibility findings – must use both the servers and the trace files as inputs.

• The report generated identifies those constructs that were exercised only!

Page 20: Migrating to SQL Server 2008

• Find keywords

– In the Server Objects

– In the Code

New keywords may need to be delimited (Bracketed) if used as object names depending on context.

– Develop “Code Chunks”

• Search for each of the deprecated terms / syntax in the source code and create a report for each item or class of item.

• Use regex to help limit false positives

– E.G Outer Join Syntax *= or =* versus /*=a note*/

• Map chunks to App owners

Page 21: Migrating to SQL Server 2008

• Use a tool that can decrypt all “encrypted” SQL Objects if source is not available / legacy apps

• Trust the manufacturer of applications claiming SQL 2008 compliance, but test anyway…

• Create Unit tests of SQL Code when possible to make sure at least one case of new syntax works.

• Compare baseline performance to post conversion to watch for issues known in 2008.

Page 22: Migrating to SQL Server 2008

Other Resources

Application and Compatibility Content & Tools

– Application Compatibility Bloghttp://blog.scalabilityexperts.com

– SQL Server 2008 Upgrade Advisorhttp://www.microsoft.com/sql

– Upgrade Assistant

• http://www.scalabilityexperts.com/default.asp?action=article&ID=43

– Reporting Services Scripter

• www.sqldbatips.com/showarticle.asp?id=62SQL Server 2008http://www.microsoft.com/sql/2008/default.mspx

– SQL Server 2008 Feature Pack – April 2009

• http://www.microsoft.com/downloads/details.aspx?FamilyID=b33d2c78-1059-4ce2-b80d-2343c099bcb4&displaylang=en

Microsoft SQL Server Community & Sampleshttp://www.codeplex.com/SqlServerSamples