36
Microsoft Data Platform Day SQL 2005 End of Life: Challenges with Legacy Apps Tim McKay, MBA, GDM, BSc AnyKey Solutions Ltd.

2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Embed Size (px)

Citation preview

Page 1: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

SQL 2005 End of Life:Challenges with Legacy AppsTim McKay, MBA, GDM, BSc

AnyKey Solutions Ltd.

Page 2: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

About AnyKey Solutions Ltd.

• Partnership mindset | Clients and Vendors. We work with you, not for you.• Established in Calgary in 1997, rich 18 year history.• In-house and virtual team of 90+ IT staff based in 3 countries.

Quality Foundation

• 24x7 managed and co-managed back office systems management.

• 24x7 end user Tier 1-4 technical support offerings.

• Business process analysis and consulting.

• Technical solution consulting and design.• Mobile, web and desktop application

development.

• Today• Rich SQL assessment, operational

support and architectural capability.

• In-house and virtual DBA bench strength.

• Strategy• Be at the forefront of solving SQL

Server challenges for businesses.

Service Background SQL Server Specialty

Page 3: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

What makes a Legacy SQL App upgrade a success?• SQL versions are tied to

applications and are limited to the support they have from the vendor, and internally.

• You also are probably thinking of those few apps that just can’t migrate.

• In one or more of these layers, you probably see risks that you need to eliminate or manage before you could even consider making the jump.

SQL Server Software (SQLServer.exe/SPs/Hotfixes)

Core Data Services (Full Text, Query Optimization)

Protocols(TCPIP, Named Pipes, etc)

Windows (KB/Hotfix/SPs, .NET)

Infrastructure (Hypervisor, Disk subsystems, Network)

Secu

rity

(AD

, AC

Ls, S

QL

user

s)

SSIS, SSAS, SSRS

Client Connection Layer(Native Client, ADO.NET, ODBC)

Server-Side App Logic (Stored Functions/Procedures, Triggers, ETL Packaging)

Client Application Queries

Page 4: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

• Attempted backend upgrade and technical analysis.

• Tried new procedures and security for end-users.

• In the end: moved to 3rd party hosting.• Key benefits:

• I.T. “made the app work” for the Business.

• Mitigating controls satisfied auditors.• SQL versions standardized.

SQL 2005 Legacy App Example

• Legacy application was used very infrequently (2-3 times/year by select group of geologists); but was critical for asset evaluation in data room.

• Each “project” in the tool had it’s own SQL 2005 database; path selected by end-users – some on user profiles on Citrix app server; some to network shares. Many of these files no longer existed but were still attached to the server.

• I.T. given mandate to ‘make the app work’.

Challenge

• No directly viable upgrade path – EOL + acquisition.

• Alternate solution was hundreds of thousands.

• The only interface to this system was via Excel.

• Audit not happy with uncontrolled data at rest.

Decision Factors

Strategies

• What if a Legacy App can’t be upgraded?

Dealing with the stragglers

Page 5: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Next Steps

• Tim McKay, President & CEO• Phone: (403) 516-4161 x 10• Email: [email protected]

• www.AnyKey.com

• #202, 90 Freeport Blvd. NE Calgary, AB T3J 5J9

AnyKey Solutions Ltd.

1. Choose a Free SQL 2005 or 2008/R2 Server Upgrade Assessment• 1 day complimentary engagement • Our consultants review your server

and outline a plan on options to migrate an entire to SQL 2014 or SQL Azure.

2. Choose a Free SQL 2005-based Legacy App Focus Study• 1-2 day complimentary engagement• Our consultants review the entire

stack with your team at a high-level to identify actionable strategies to migrate to SQL 2014 or SQL Azure.

Offer for Attendees

Page 6: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Page 7: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Microsoft Data Platform Day

Tim McKayAnyKey Solutions Ltd. Microsoft Partner

Microsoft Assessment & Planning Tool (MAP)

Page 8: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

What makes a Legacy SQL App upgrade a success?• SQL versions are tied to

applications and are limited to the support they have from the vendor, and internally.

• You also are probably thinking of those few apps that just can’t migrate.

• In one or more of these layers, you probably see risks that you need to eliminate or manage before you could even consider making the jump.

SQL Server Software (SQLServer.exe/SPs/Hotfixes)

Core Data Services (Full Text, Query Optimization)

Protocols(TCPIP, Named Pipes, etc)

Windows (KB/Hotfix/SPs, .NET)

Infrastructure (Hypervisor, Disk subsystems, Network)

Secu

rity

(AD

, AC

Ls, S

QL

user

s)

SSIS, SSAS, SSRS

Client Connection Layer(Native Client, ADO.NET, ODBC)

Server-Side App Logic (Stored Functions/Procedures, Triggers, ETL Packaging)

Client Application Queries

Page 9: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

MAP Tool Features• Hardware and software inventory data collectors• Performance and utilization data collectors• Discovery methods:

• Active Directory Domain• IP address range• System Center Configuration Manager (SCCM)• Manually entered systems & creds • Imported list (ie from RMM or Inventory Tools)

• Analysis wizards on performance and usage• Cloud readiness

• Windows 8.1 & Windows 10 readiness analysis• Office 2010, 2013 readiness• Windows Server 2008 R2, 2012, 2012 R2 readiness• Web applications• Desktop virtualization• Server virtualization• DATABASE DISCOVERY !! (Finally.)

Page 10: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

MAP Tool Benefits• Find systems you didn’t know you had• Plan for Azure readiness• VMs running Windows and SQL Server• Azure SQL Database• Hosted Oracle

• Identify needed capacity for Azure VM for IaaS consideration

Page 11: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

MAP Tool for SQL 2005 Migration• A great tool to find instances of SQL Server 2000, 2005, 2008

or 2008 R2 you may want to upgrade to SQL 2014.

• Kill many birds with one stone :• Leverage the cloud and migration tools for analysis. • Find issues, resolve them.• Destroy test environments when done.• Try Azure services if you haven’t before.• Sample the power of SQL 2014 OLTP with your apps first hand.

Page 12: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Start Collection – Scenarios & Methods

Page 13: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Credentials – Windows + SQL (sa)

Depending on Degree of Admin Access Segregation, may need to enter multiple IDs.

Page 14: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Running Collection – 298 in ~10 min

Page 15: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Overview + Cloud

Page 16: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Desktop + Server

Page 17: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Sweet, Sweet Databases• Counts by version level• Azure VM readiness analysis

• SQL 2000 through 2014• Oracle 9 through 11

Page 18: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Drilldowns + Assessment Excel Reports

Page 19: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Microsoft Data Platform Day

Tim McKayAnyKey Solutions Ltd. Microsoft Partner

SQL Azure Migration Wizard

Page 20: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

What makes a Legacy SQL App upgrade a success?• SQL versions are tied to

applications and are limited to the support they have from the vendor, and internally.

• You also are probably thinking of those few apps that just can’t migrate.

• In one or more of these layers, you probably see risks that you need to eliminate or manage before you could even consider making the jump.

SQL Server Software (SQLServer.exe/SPs/Hotfixes)

Core Data Services (Full Text, Query Optimization)

Protocols(TCPIP, Named Pipes, etc)

Windows (KB/Hotfix/SPs, .NET)

Infrastructure (Hypervisor, Disk subsystems, Network)

Secu

rity

(AD

, AC

Ls, S

QL

user

s)

SSIS, SSAS, SSRS

Client Connection Layer(Native Client, ADO.NET, ODBC)

Server-Side App Logic (Stored Functions/Procedures, Triggers, ETL Packaging)

Client Application Queries

Page 21: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

SQL AzureMW Tool Features• Main function of the AzureMW tool is to migrate databases to

Azure hosted SQL Database services or Azure hosted VMs running SQL 2014.

• Since Azure SQL is based on SQL 2014 (ish), we can leverage this tool for analysis purposes even if Azure isn’t the final destination. Remember we’re trying to discover blind spots to reduce risks.

• Analyze previously created SQL Profile Trace files• Analyze TSQL scripts for compatibility• Analyze + (optional) Migrate Database • Analyze TSQL File (useful for iterative testing)

Page 22: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

SQL AzureMW Tool Benefits• General benefits• Identify potential issues with code-level execution (trace files)• Identify potential issues with standard script libraries• Identify potential issues in DDE and stored user code (procs & funcs)

• Azure Migration benefits• Identify Azure SQL-specific issues

• From my perspective, the chief benefit is :• Remember, most software vendors are developers, not DBAs with

your expertise. Help them help you.• Provides specific, actionable fixes your vendors can implement

quickly without wasted cycles on analysis.

Page 23: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Profiler Trace file analysis

Page 24: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Database Analysis Scenario• ERP Database – SQL 2008 R2• ~ 1000 tables• ~ 100 stored procedures• 1.6gb data file• 0.7gb log file

Page 25: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Select Source DB + Objects

Page 26: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Start Analysis• Wizard will generate a SQL script

with DDE• BCP data extract to C:\

SQLAzureMW\BCPData folder

• Recommend manually purging prior to successive runs.

Page 27: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Sample Error Outputs

Page 28: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Sample Error Outputs

Page 29: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Sample Error Outputs

Page 30: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Performance• Target : SQL Database V12• 8 min 43 sec• Most tables had issues

• Target : Azure SQL• 5 min 0 sec• Half to ¾ tables had issues

• Target : SQL Server • 5 min 35 sec• No issues

Page 31: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Microsoft Data Platform Day

Tim McKayAnyKey Solutions Ltd. Microsoft Partner

SQL 2014 Upgrade Advisor

Page 32: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

What makes a Legacy SQL App upgrade a success?• SQL versions are tied to

applications and are limited to the support they have from the vendor, and internally.

• You also are probably thinking of those few apps that just can’t migrate.

• In one or more of these layers, you probably see risks that you need to eliminate or manage before you could even consider making the jump.

SQL Server Software (SQLServer.exe/SPs/Hotfixes)

Core Data Services (Full Text, Query Optimization)

Protocols(TCPIP, Named Pipes, etc)

Windows (KB/Hotfix/SPs, .NET)

Infrastructure (Hypervisor, Disk subsystems, Network)

Secu

rity

(AD

, AC

Ls, S

QL

user

s)

SSIS, SSAS, SSRS

Client Connection Layer(Native Client, ADO.NET, ODBC)

Server-Side App Logic (Stored Functions/Procedures, Triggers, ETL Packaging)

Client Application Queries

Page 33: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Select Host & Services, Connection

Reporting Services must be performed local on host;Recommend running all on localhost

Page 34: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Select Databases for Analysis

Page 35: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Confirmation and a Gotcha

Compatibility SQL 2005 mode 90 and higher only

Page 36: 2015-10-28 - Data Plat Days - AnyKey Partner Presentation - Full

Microsoft Data Platform Day

Performance• Virtualized Server• 6 vCPU• 24 GB RAM• SQL 2012 R2, latest SP

• ~ 4-5 minutes execution time