Migration To Microsoft SQL Server 2014 Using SSMA
Migration To Microsoft SQL Server 2014 Using SSMA
Summary: Microsoft SQL Server is the worlds most deployed database and is included in the Leaders
Quadrant for the Gartners Magic Quadrant for Operational Database Management Systems 1. Large
numbers of customers are adopting SQL Server because of its low total cost of ownership; ease of
management; support for a wide range of enterprise-grade features; and enterprise-class scalability,
availability, and reliability. Microsoft SQL Server Migration Assistant (SSMA) helps organizations to
modernize their platforms by migrating their legacy applications and databases from other vendors
(including Access, DB2, MySQL, Oracle, and Sybase) to SQL Server. In this white paper, we will see how
SSMA is helping to automate the various phases of database migration, such as data assessment,
schema and application migration, data migration, and testing. We will also discuss how SSMA
significantly speeds upand reduces the cost ofmigration at every step.
SQL Server Blog, Microsoft a Leader in Gartners Magic Quadrant for Operational Database Management Systems
http://blogs.technet.com/b/dataplatforminsider/archive/2013/10/31/microsoft-a-leader-in-gartner-s-magic-quadrant-for-operationaldatabase-management-systems.aspx, October 2013.
1
Copyright
The information contained in this document represents the current view of Microsoft Corporation on the
issues discussed as of the date of publication. 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 presented after the date of publication.
This white paper is for informational purposes only. MICROSOFT MAKES NO WARRANTIES,
EXPRESS, IMPLIED, OR STATUTORY, AS TO THE INFORMATION IN THIS DOCUMENT.
Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights
under copyright, no part of this document may be reproduced, stored in, or introduced into a retrieval
system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or
otherwise), or for any purpose, without the express written permission of Microsoft Corporation.
Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property
rights covering subject matter in this document. Except as expressly provided in any written license
agreement from Microsoft, the furnishing of this document does not give you any license to these patents,
trademarks, copyrights, or other intellectual property.
Microsoft, Active Directory, Microsoft Azure, Excel, SharePoint, SQL Server, Windows, and Windows
Server, are trademarks of the Microsoft group of companies.
Page 2
Contents
Why migrate to SQL Server? .......................................................................................... 4
Business considerations ........................................................................................................................... 4
Technical considerations........................................................................................................................... 4
Architectural considerations ...................................................................................................................... 5
Customer evidenceWhy migrate to SQL Server? ................................................................................. 6
Page 3
Business considerations
The total cost of ownership (TCO) stands out as a major business consideration for the adoption of
SQL Server 2014. SQL Server delivers full enterprise-grade features at a lower TCOand unlike the
products from most other competitors, no costly add-ons are required. SQL Server 2014 supports
mission-critical operations and modern app development with enterprise-class capabilities built into a
single solution. SQL Server offers an integrated high-availability solution with faster failover and reliable
backups, delivering new standards in enabling mission-critical operations. SQL Server 2014based
solutions are easy to deploy, manage, and monitor, which helps organizations reduce management costs,
drive incremental revenue from improved systems, and improve IT and end-user productivity while
reducing TCO.
Technical considerations
Microsoft SQL Server 2014 is bundled with many new features, making it a compelling upgrade for most
organizations. These features enable organizations to scale and transform their businesses, with up to a
30x performance gain for transaction processing using existing hardware and a greater than 100x
performance gain for data warehousing. New features include:
Gartner Newsroom, Gartner Says Cloud, Mobility and Open Source Will Drive Application Development Market to Exceed $9
Billion in 2012, http://www.gartner.com/newsroom/id/2131115, August 2012.
2
Page 4
With this feature, certain tables and stored procedures can be moved into the main memory
(RAM), which reduces the query response time and hence improves performance.
Microsoft Azure integration: A new wizard provides the capability to directly host a SQL
Server database in a Windows Azure Virtual Machine. There is native support for SQL Server
database files stored as Windows Azure Blobs, providing a dedicated storage location for the
databases.
ColumnStore Indexes: New updateable Clustered ColumnStore Indexes help improve data
compression and query performance for data warehousing workloads. This feature also
supports archival data compression.
Buffer pool extension: Solid-state drives (SSD) can be used as a nonvolatile random
access memory (NVRAM) extension to expand the buffer pool when systems run out of
memory.
Resource Governor enhancements for physical I/O control: The Resource Governor can
now be used to manage and restrict use of physical I/O resources in addition to CPU and
memory resourcesfor example, by setting limits on the amount of CPU, physical I/O, and
memory resources that incoming application requests can use within a resource pool.
Backup and restore enhancements: SQL Server Backup to URL now supports backup to
or restore from Windows Azure Blob storage service. Backups can be encrypted at the time
of backup operation.
Architectural considerations
In recent years, there has been a dramatic change in both business needs and available hardware
resources, which has brought a shift in the architectural paradigm. Now organizations require a stable yet
dynamic environment, including a robust platform and handy tools to keep up with the changing needs of
the market. Key architectural considerations for SQL Server 2014 include:
Page 5
Solution:
The new solution, based on Microsoft SQL Server, handles 13 million
transactions each month from duty-free sales alone, and it includes
100 million rows in the largest table. It uses 25 dashboards and more
than 120 interactive charts and scorecards.
Benefits:
Improved business agility and faster access to data, as
business managers have direct access to data without having to
wait for monthly reports.
Enhanced data oversight and compliance, with easy-toproduce, highly prescriptive audit reports.
Self-service BI tools provide simplified and accelerated reporting.
Page 6
Solution:
In addition to migrating its Oracle database to the Microsoft SQL
Server using SSMA, SRI replaced its Itanium server computers with
64-bit(x86) hardware from NEC and virtualized servers wherever
possible. Engineers plan to develop all new software with the
Microsoft .NET Framework or Java. By end of 2016, SRI plans to
migrate majority of its mission-critical systems to Microsoft platform.
Benefits:
SRI forecasts reduced software license costs of 88 million
(US $1 million) in five years just by migrating its dealer
management system to the Microsoft platform.
The unified Microsoft infrastructure increased collaborative
development and innovation across different teams.
Solution:
The Oracle database was readily migrated to SQL Server 2008 using
the SQL Server Migration Assistant (SSMA) for Oracle, which was a
very cost-effective solution for migrating and validating the migration
of both code and data from Oracle to SQL Server. By combining the
witness server with asynchronous database mirroring, this solution
delivered a truly redundant, resilient, and high-availability system.
Fadi Areeshi
General Cars Syndicate,
SQL Server DBA
Benefits:
High performance and faster access to data through tight
integration among Microsoft products.
Minimal conversion was required to the .NET applications,
accelerating the projects time-to-value.
Page 7
Value realization: Making the right decision about which data to migrate is the foremost concern
for organizations. Data storage and management involves huge investments of cost and timeas
does data migration. Without proper cost and value estimates, an organization might migrate all
data sources to target systems, only to realize later that migrating the not-so-critical databases to
newer technologies cost more than the actual value of the data itself.
Risk: In-house database administrators (DBAs) are not accustomed to performing database
migration as a part of their regular day-to-day activities, and might find it difficult to identify all the
possible risks and dependencies up front. Therefore, even after proper planning and
methodologies, there is a risk of exceeding time and cost budgets when carrying out migration
projects.
Skills: Efficiently migrating a large or complex database with multiple dependencies requires
qualified talent. The involvement of sufficiently skilled personnel can ensure minimal data-quality
issues post-migration. In addition, the existing users or developers of the technology must be retrained to use and understand the new applications and platforms quickly and easily for effective
adoption.
Pilot runmigrate and assess sample applications: Some sample applications with different
levels of complexityfor example, low, medium and high complexitycan be selected for
migration to SQL Server. Migration of these samples can provide a fair idea of the actual
complexity involved in migrating the entire platform. The assessment reports for these application
migrations can help customers to visualize and evaluate the complexity of the overall platform
migration.
Entire platform migration: Migration of the entire platform is a complex process, and it requires
robust planning and effective execution by skilled engineers. Additional automation tools can be
used to help carry out the transition in an effective manner.
Page 8
Check migration readiness: The initial step when preparing for a database migration is to
assess the database environment, so that the risks can be evaluated. Assessment reports should
include information such as the amount of migration that can be automated and estimates of the
manual effort required. Based on the key findings from this assessment report, the organization
can proceed with capacity planning, including determining the hardware and software
infrastructure. Then the engagement model to be used during the migration process can be
defined.
Database migration steps: An organization should analyze the existing database, and then
design SQL Server database to provide similar functionality. Next, a prioritized migration roadmap
should be prepared, based on business objectives. Once that is done, database objects can be
migrated, including tables, views, triggers, PL/SQL packages, Java code, and stored procedures.
When the schema is ready in the destination database, data can be migrated. When both schema
and data are ready in the destination system, the database schema and the validity of the data
can be verified.
Load parallel data: If extract-transform-load (ETL) packages were used to load the data from or
to some external data stores, those packages need to point to the new database location. Any
data extraction processes from the original database will also need to be replicated within the
new SQL Server instance. Load performance can be checked by running some test loads. Once
performance has been verified, security and monitoring functions needs to be set up and
validated.
Perform application remediation: Finally, testing for data integration with the applications that
used data from the original database is required to ensure that the applications work with the new
SQL Server instance. This should be followed by user-acceptance testing, and training and
knowledge transfer to the respective stakeholders. Production-environment implementation and
post-production support activities follow as for any software project activity.
Page 9
Scoping and planning: As with any software development project, the initial requirement for
data migration is to define the scope of the project. This step includes identification of all
database instances and supporting architecture requirements involved in or affected by the
migration.
o
Page 10
Database migration and application conversion: Before beginning the actual database
migration and application conversion, an assessment of the environment can help to identify the
actual effort and complexity involved in the migration process.
o
Page 11
Once all of the assessment-related activities are complete and reports are obtained, a
business case can be prepared. This report allows the business decision makers to
understand the benefits and the risk components involved with the entire migration
process, and helps with the decision-making process regarding some critical applications.
It also helps to identify technical obstacles in the data migration process, which can alert
the system administrators to potential problems.
To help with the business case, Microsoft provides a risk assessment or risk map,
which provides a graphical representation of the assessment of the overall portfolio of the
organization (Figure 3). The risk assessment evaluates all databases, applications,
infrastructure, tests, replications, roll-outs, reports, ETL processes, and so on, and
categorizes them based on the probability and potential effect of the occurrence of risks.
This helps decision makers understand which applications have a higher probability of
risk, and which could have a greater effect due to that risk, and aids decisions about
which applications or databases should be migrated first.
Page 12
An applications migration map (Figure 4) also provides business leaders, CIOs, and
managers an overall view of the complexity involved in the migration. This report is based
on simple graphs or PowerPivot charts, where the size of a bubble represents the effort
required. The applications migration map can be used to identify the applications with
which to start the migration, while considering the efforts involved and the potential risks.
Database migration and application conversion: SSMA can also help organizations
automate the actual conversion process. It supports a direct conversion of schema and
data migration from source system to destination system. It also supports migration of
embedded SQL statements. In any database application, code may not exist solely inside
the databaseit may also be stored outside the database, as with a PowerBuilder
application having embedded PL/SQL code. There could be even a middle tier. All
embedded SQL statements needs to be considered for conversion, which SSMA does.
The key steps involved in the database migration and application conversion stage are:
Database migration: This includes the schema translation and the code
translation (of packages, stored procedures, functions, and the like).
Page 13
is not feasible with larger amounts of data (1015 TB) or if the application is
mission critical and cannot be turned off. An alternative approach could be a
staged migration, where a snapshot of the existing database system is taken and
migrated to the destination system while the current database still running. A
mechanism is developed to determine the changes that occur in the database
after the migration, and those changes are replicated in the destination database
until both systems are fully synchronized.
Testing: Data needs to be tested for validity after it has been migrated. To do
this, a quick comparison of the data (including number of records, format, and so
on) can be made between the source and the destination systems. SSMA can be
used to perform this testing.
Additional migration considerations: Aside from the above-mentioned factors, every database
system has some ETL and batch processes going on to enable the flow of data into and out of
the system. Also, there could be several additional system and database interfaces in the
environment, such as interfaces with high availability and failover (like ODBC or JDBC
connectivity). For example, there can be a situation where PowerBuilder could be calling the
Oracle or Sybase database using DBLib (a PHP library to create WWW interfaces to databases).
Types of libraries which do not exist now, or are not supported today, also need to be considered,
and strategies prepared for them.
Application deployment: Just like any software project, database migration requires proper
testing, performance tuning, going live, and similar post-production activities. When a database is
migrated, the front-end applications need to be connected with the new database. There are
several considerations when deploying applications.
o
User login and permission: The authentication mechanism can be bound to the
database in several ways. For example, there could be a scenario where the user
connects to the application via Active Directory integration, then the application connects
to the database tier. In this case, the application may have the user ID embedded to
make an SQL call, or User ID may be passed as a parameter. Organizations may also
use various other authentication mechanisms in their environments, like Windows
groups, SQL Auth, Mixed Mode Auth, and Windows Auth, which need to be considered
during migration.
Performance tuning: Currently, almost all databases like Oracle, DB2, Sybase, and
SQL server possess roughly similar offerings, but the capabilities could be balanced
differently across different products or features. For this reason, some fine-tuning would
help to further improve the performance. When switching to SQL Server, there are
several ways in which users can assess and optimize performance:
The Microsoft SQL Server Distributed Replay feature helps users assess the
performance of the system by replaying the captured traces of any mission-critical
workload against any new SQL Server environment. This way, users can check for the
effect of running a workload in a given environment without having to actually deploy the
entire workload in that environment.
Page 14
SQL Server Extended Events allows users to record the event data (key execution
points) generated by the SQL server and use it for various purposes, including
application tracing (tools like SQL Trace and System Monitor) and logging (tools like
Windows Event Log or SQL Server Error Log).
Within the SQL Server Management Studio (SSMS), there is Query Execution Plan
feature, which graphically displays the data-retrieval methods used by the SQL Server
query optimizer. This helps users understand the performance characteristics of the
queries being executed.
There are several additional tools, like SQL Profiler, Index Tuning Wizard, and SQL
Query Analyzer, which can be used to optimize the indexes and thus the performance of
SQL Server.
Page 15
Migration Analyzer: SSMA Migration Analyzer performs an analysis of the source database
objects and provides estimates of the time and effort required to migrate all the database objects
to destination database (SQL Server or Azure SQL Database). It provides an estimate of the
percentage of the database code that can be converted automatically. For the remaining code
which it cannot migrate, it can provide an approximate estimate of the labor required to migrate
the code manually. To make its assessments, the Migration Analyzer computes approximately
100 specific statistics that comprehensively characterize the database. An assessment usually
takes less than a day to complete. The statistics provided by the Migration Analyzer can be saved
in an external file in Excel-compliant format to enable the user to work with this data offline, if
required.
Schema Converter and Data Migrator: This component is associated with a powerful IDE for
cross-platform database developers. It performs the actual database conversion. The Schema
Converter usually converts more than 90 percent of the SQL code automatically, and there are
instances where it has accomplished up to 99 percent of code conversion automatically. It
provides detailed reports about database objects that it cannot convert, along with the specific
constructs in the code that cause the problems.
Migration Tester: This component performs migration testing by providing automated validation
of the migration process. After all data migration steps are completed, SSMA Migration Tester
can be used to verify that converted objects work properly and that all data was transferred
properly. SSMA Tester can be used to test the following object types:
o
Tables
Views
Standalone statements
Effort estimation: SSMA Migration Analyzer can perform a thorough analysis of the source
database (to be converted) to estimate the time and effort required to migrate the database. It can
also provide details about the percentage of the database that can be converted automatically,
and the estimated effort required to migrate the remaining database manually.
Schema conversion: SSMA can automate the conversion of data types, constraints, views,
indexes, sequences, table schema, and the like of any specific database to SQL Server data
types. SSMA raises appropriate flags for any code-bits which it is not able to convert. For
example, for conversion from Oracle scalar data types, it uses the following mappings:
o
varchar2 varchar
char char
number numeric
date datetime
long text
nvarchar2 nvarchar
boolean smallint
Page 16
Data migration: Once the schema is ready at the destination database, SSMA can help to
migrate the data as well. It migrates the data either one table at a time, or all tables at once.
During data migration, the user should ensure that there are no constraints or triggers associated
with a table which might prevent the records from being inserted.
Business logic: SSMA can also help convert additional business logics implemented in a
database, like triggers, constraints, outer joins, hints, stored procedures, functions, and
packages.
Extension pack moved to a schema: In addition to installing SSMA, you must also install
database-specific extension packs on the computer that is running SQL Server. Extension packs
identify specific code or functions in Oracle or any other language. They support data migration
and database-specific providers to enable server-to-server connectivity. The SSMA extension
pack adds the databases sysdb and ssmatesterdb to the specified instance of SQL Server. The
database sysdb contains the tables and stored procedures that are required to migrate data, and
the user-defined functions that emulate source database system functions (like Oracle). The
ssmatesterdb database contains the tables and procedures that are required by the Migration
Tester component.
The extension packs are now moved to a schema level (as opposed to separate database),
because Azure SQL Database cannot have multiple databases. For more details about using
extension packs, see https://msdn.microsoft.com/en-us/library/hh313165(v=sql.110).aspx.
SSMA for Access: SSMA for Access simplifies the database migration process from Access to
SQL Server. It automates conversion of Microsoft Access database objects to SQL Server
database objects, loads the objects into SQL Server and Azure SQL Database, and then
migrates data from Microsoft Access to SQL Server and Azure SQL Database. SSMA for Access
v6.0 is designed to support migration from Microsoft Access 97 and higher to all editions of SQL
Server 2005, SQL Server 2008, SQL Server 2008 R2, SQL Server 2012, SQL Server 2014, and
Azure SQL Database. The Microsoft SQL Server Migration Assistant v6.0 tool for Access is
available for download here: http://www.microsoft.com/en-us/download/details.aspx?id=43690.
SSMA for MySQL: SSMA for MySQL simplifies the database migration process from MySQL to
SQL Server and Azure SQL Database. It automates all aspects of migration including migration
assessment analysis, schema and SQL statement conversion, data migration, and migration
testing. SSMA for MySQL v6.0 is designed to support migration from MySQL 4.1 and higher to all
editions of SQL Server 2005, SQL Server 2008, SQL Server 2008 R2, SQL Server 2012, SQL
Server 2014, and Azure SQL Database. The Microsoft SQL Server Migration Assistant v6.0 tool
Page 17
SSMA for Oracle: SSMA for Oracle simplifies the database migration process from Oracle to
SQL Server and Azure SQL Database. SSMA automates all aspects of migration including
migration assessment analysis, schema and SQL statement conversion, data migration, and
migration testing. This product includes the GUI clientbased application to manage the migration
process as well as the SSMA extension pack to be installed on the destination SQL Server. The
SSMA extension pack includes functionalities to emulate Oracle features not natively supported
in SQL Server, a tester database to support SSMA Testing features, and an application to
facilitate direct server-to-server data migration. SSMA for Oracle v6.0 is designed to support
migration from Oracle 9.07.3 or later versions to all editions of SQL Server 2005, SQL Server
2008, SQL Server 2008 R2, and SQL Server 2012, SQL Server 2014, and Azure SQL Database.
The Microsoft SQL Server Migration Assistant v6.0 tool for Oracle is available for download here:
http://www.microsoft.com/en-us/download/details.aspx?id=43689
Separately, a detailed technical white paper on Microsoft SQL Server Migration Assistant v6.0 for
Oracle is available for download here: http://download.microsoft.com/download/F/C/A/FCA3758053F5-46DB-A981-E08018661F09/Migrating-Oracle-to-SQL-Server-2014-and-Azure-SQL-DB.pdf.
SSMA for Sybase: SSMA for Sybase simplifies the database migration process from Sybase
Adaptive Server Enterprise (ASE) to SQL Server and Azure SQL Database. SSMA automates all
aspects of migration including migration assessment analysis, schema and SQL statement
conversion, data migration, and migration testing. SSMA for Sybase v6.0 is designed to support
migration from Sybase ASE version 11.9 and higher to all editions of SQL Server 2005, SQL
Server 2008, SQL Server 2008 R2, SQL Server 2012, SQL Server 2014, and Azure SQL
Database. The Microsoft SQL Server Migration Assistant v6.0 tool for Sybase is available for
download here: http://www.microsoft.com/en-us/download/details.aspx?id=43691
Separately, a detailed technical white paper on Microsoft SQL Server Migration Assistant v6.0 for
Sybase is available for download here:
http://download.microsoft.com/download/E/5/2/E522B67E-FA7F-4149-9C313EAD725B3A1D/Migrating-Sybase-ASE-to-SQL-Server-2014-and-Azure-SQL-DB.pdf.
SSMA for DB2: SSMA for DB2 simplifies the database migration process from DB2 to SQL
Server and Azure SQL Database. SSMA automates all aspects of migration including migration
assessment analysis, schema and SQL statement conversion, and data migration. This product
includes a GUI clientbased application to manage the migration process. The GUI client will
install functionalities in SQL Server or Azure SQL Database to emulate DB2 features not natively
supported in SQL Server or Azure SQL Database. SSMA for DB2 v6.0 is designed to support
migration from DB2 on z/OS versions 9.0 and 10.0 and DB2 on Linux/Unix/Windows (LUW)
versions 9.8 and 10.1 to SQL Server 2012, SQL Server 2014, and Azure SQL Database. The
Microsoft SQL Server Migration Assistant v6.0 tool for DB2 is available for download here:
http://www.microsoft.com/en-us/download/details.aspx?id=45296.
Separately, a detailed technical white paper on Microsoft SQL Server Migration Assistant v6.0 for
DB2 is available for download here: <TBD>
Page 18
Description
SQL Server
Community
Newsgroups and forums that are monitored by the SQL Server community. This
site also lists community information sources, such as blogs and websites. The
SQL Server community can help answer questions, although there is no
guarantee of an answer.
SQL Server
Developer Center
Community
This site focuses on the newsgroups, forums, and other community resources
that are useful to SQL Server developers.
You can use this website to open a case with a Microsoft support professional.
SSMA Blogs
Conclusion
Application and data platform modernization are considered to be among the top enterprise IT initiatives.
Organizations often seek to migrate toward a better and more competitive platform like SQL Server. This
can help them break the traditional barriers of legacy databases and deliver mission-critical performance
with faster insights and support for cloud-based platforms.
However, migration to a modern platform is usually considered a complex task and requires a welldefined methodology and approach to ensure a timely and efficient execution of the platform-transition
process. SQL Server Migration Assistant, a data migration tool from Microsoft, efficiently handles the
complexities involved in the migration process and helps to automate and manage database migration.
SSMA helps organizations migrate their applications and databases from other vendors (including
Access, DB2, MySQL, Oracle, and Sybase) to SQL Server in an efficient manner. It helps speed the
entire process by automating almost every aspect of database migration, including database assessment,
schema and application migration, data migration, and validation of the migrated database. This helps
reduce the time, cost, and risks associated with migrating to SQL Server. With SSMA, customers do not
have to remain tied to an expensive, sub-optimal database solution.
Page 19
Key resources
Free download of detailed technical white papers on SQL Server Migration Assistant:
o
Did this paper help you? Please give us your feedback. Tell us on a scale of 1 (poor) to 5 (excellent), how
would you rate this paper and why have you given it this rating? For example:
Are you rating it high due to having good examples, excellent screenshots, clear writing, or
another reason?
Are you rating it low due to poor examples, fuzzy screenshots, unclear writing?
This feedback will help us improve the quality of the white papers we release.
Send feedback.
Page 20