
Db2 has run serious business for decades: policies, claims, billing, orders, ledgers. The people who built those systems are retiring, the nightly jobs around them have grown into a tangle, and every reporting question seems to need another extract. When the support renewal, the hardware or the skills gap comes into view, someone asks whether the data should live on SQL Server instead. This guide is for the people who have to answer that question, and it starts with an important fact: “Db2” is really three different products, and the answer depends on which one you run.
Short answer
Moving from Db2 to SQL Server is realistic, and Microsoft provides SQL Server Migration Assistant (SSMA) for Db2, a free tool that converts schemas and code and migrates data. It works with Db2 for z/OS (versions 9.0 and 10.0 and later), Db2 for Linux, UNIX and Windows (versions 9.8 and 10.1 and later) and Db2 for i (7.1 and later), and it targets SQL Server 2019 and later (Windows and Linux), Azure SQL Database and Azure SQL Managed Instance. The tool does the bulk conversion. People handle what decides success: transaction and isolation behavior, application SQL, character data and number handling, the jobs and ETL around the database, and a cutover that does not interrupt the business. A Db2 LUW system is usually a database project. A mainframe Db2 for z/OS system is usually an application project, and it needs a bigger plan.
Series: this is part 8 of our series on moving legacy databases to SQL Server. Part 1 covers Microsoft Access, part 2 covers Excel, part 3 covers Oracle, part 4 covers SAS, part 5 covers Sybase / SAP ASE, part 6 covers PostgreSQL, part 7 covers MySQL, part 9 covers Visual FoxPro, and the complete guide explains why, what it takes and how it is tested.
At a glance
- Why organizations move: support and licensing terms, the support dates IBM publishes for each release, fewer people who know Db2, an existing SQL Server footprint to consolidate onto, and batch and ETL processing that has become hard to change or recover.
- First question: which Db2 do you run: LUW, z/OS or i? The size and shape of the project depend on it.
- The tool: SSMA for Db2 converts schemas and SQL code, flags what needs review and migrates data. It does not move your applications, schedulers or ETL, and it does not decide what your business rules mean.
- Where the risk is: transactions and isolation, NULL ordering, timestamp precision, character data and code pages, and application SQL written for Db2.
- How we start: a free, no-obligation discovery call, then a written assessment and plan you approve before any work begins. No setup fees and no minimum contract.
Which Db2 do you run?
| Db2 family | What it usually looks like | What it means for a migration |
|---|---|---|
| Db2 for Linux, UNIX and Windows (LUW) | Distributed servers running transactional applications, warehouses and packaged software. | Usually the most direct path. SSMA supports Db2 LUW 9.8 and 10.1 and later, and Azure Data Factory can copy data from LUW 10.1 and later versions. |
| Db2 for z/OS | Mainframe databases behind COBOL and similar programs, batch jobs and online transaction systems, often with character data in EBCDIC code pages. | Usually a larger application migration, not only a database move. SSMA supports z/OS 9.0 and 10.0 and later, and character encoding, packed or numeric fields in character columns and the programs that call the data need explicit handling. |
| Db2 for i (IBM i) | Data on IBM i systems, used by programs written for that platform. | Supported by SSMA from Db2 for i 7.1. The data moves readily, and the work is in the programs, files and jobs that surround it. |
Why do organizations move from Db2 to SQL Server?
There is no single reason, and we do not quote a percentage saving. These are the reasons that come up most in the projects we see:
- Support and licensing terms. Contracts for Db2 and the platform under it are a recurring line item. The useful test is a three-year model built from your own numbers, not a published estimate (see below).
- Published support dates. IBM publishes support dates for each Db2 release and edition. Staying supported means planning for them, either by upgrading within Db2 or by moving platforms. Check IBM’s lifecycle pages for your exact release.
- Skills. The people who know your Db2 environment well, including its stored procedures, utilities and scheduling, are a shrinking group. SQL Server skills are easier to hire and to share across teams.
- Consolidation. Many organizations already run SQL Server for other systems. Moving Db2 workloads there means one platform to patch, back up, secure and monitor.
- Batch and ETL that is hard to change. Overnight jobs that extract the same large datasets again and again, transformation rules scattered across scripts and reports, and failed runs that need substantial rework are a common reason to modernize the database and the processing together.
- Inconsistent business definitions. When departments calculate the same measure differently, a platform move is a chance to settle the definitions and the data lineage.
- The Microsoft ecosystem. SQL Server Agent, Integration Services, Power BI, Azure and Microsoft Entra sign-in work together, so scheduling, reporting and access control can be managed in one place.
When should you stay on Db2, or upgrade it, instead?
An honest assessment sometimes ends with “stay,” at least for part of the estate. Here is how we sort the decision.
| Topic | Usually a good candidate for SQL Server | Needs a closer look |
|---|---|---|
| Platform | Db2 LUW or Db2 for i workloads, and warehouses fed from Db2. | Large Db2 for z/OS systems where hundreds of programs are tied to the mainframe. Plan these as application migrations or move them in stages. |
| Applications | Applications you can change, or that are being modernized anyway. | Packaged software certified only for Db2, or applications nobody can change. |
| Code | Mostly standard SQL and stored procedures that SSMA can convert with manual review of a minority. | Heavy use of Db2-specific features, static SQL packages and embedded SQL in programs you cannot rebuild. |
| Economics | A recurring cost gap (support, licensing, hardware) that holds after migration, testing and parallel running. | Small savings, or a contract you cannot exit for years. |
| Support dates | A release approaching its published support date, with time to plan a phased move. | A supported release with no pressure, where an upgrade within Db2 may cost less. |
| Downtime | Work that can move with a short, scheduled write pause after history is loaded in advance. | Systems that cannot stop at all, which need a synchronization approach and more design. |
| Estate | An existing SQL Server footprint to consolidate onto. | A single small Db2 server with no other Microsoft footprint, where the case is weaker. |
Where can Db2 and SQL Server give different results?
These differences turn a “simple conversion” into a project. Many of them raise no error, which is why they come first in an assessment. The behaviors below come from IBM’s documentation and Microsoft’s documentation, and each should be confirmed for your Db2 version and platform.
| Area | In Db2 | In SQL Server, and what to do |
|---|---|---|
| Transactions | A unit of work starts implicitly. The default isolation level is cursor stability (CS), and other levels are uncommitted read, read stability and repeatable read. | SQL Server’s default is autocommit, so transactions that Db2 started implicitly need an explicit BEGIN TRANSACTION or the SET IMPLICIT_TRANSACTIONS setting. Review every procedure’s commit and rollback behavior. |
| Isolation and locking | Isolation levels control how long read locks are held, and inserted, updated and deleted rows are locked until the unit of work ends. | SQL Server’s default READ COMMITTED level uses locks unless READ_COMMITTED_SNAPSHOT is on (off by default in SQL Server, on by default in Azure SQL Database). Test concurrent updates, such as payments, reversals and corrections, and decide on row versioning. |
| NULL ordering | NULL values sort as the highest values in an ordered list, so ascending order puts them last. | In SQL Server, NULL values are the lowest, so ascending order puts them first. Reports and paging logic that depend on order can change, so add explicit ordering rules. |
| Timestamps | TIMESTAMP carries 0 to 12 fractional-second digits (default 6), with years 0001 to 9999. | datetime2 supports 0 to 7 digits, with the same year range. If you store 8 to 12 digits, decide what to keep. Check any code that compares or joins on timestamps. |
| Character data | Db2 for z/OS stores character data in EBCDIC code pages (CCSIDs). Db2 supports CHAR and VARCHAR FOR BIT DATA, and graphic strings. | SQL Server stores Unicode or UTF-8 character data, so EBCDIC data is converted on load. FOR BIT DATA columns map to binary types, and large objects map to varbinary(max) and varchar(max). Validate special characters and any numbers packed into character columns. |
| Application SQL | Applications often use static SQL packages and embedded SQL. A missing package returns SQLCODE -805. | Queries are rewritten for T-SQL and connections move to SQL Server drivers. Retest every query path and error-handling routine against representative workloads. |
| Row limits and syntax | FETCH FIRST n ROWS ONLY, special registers such as CURRENT DATE, the VALUES clause, and SQL PL for procedures. | TOP or OFFSET and FETCH, functions such as GETDATE, and T-SQL for procedures. SSMA converts many of these, and each converted routine still needs review. |
| Sequences, schemas and merges | Sequences and schemas are used widely, and MERGE is supported. | SQL Server supports sequences, schemas and MERGE. SSMA can map a Db2 schema to a SQL Server database or to a SQL Server schema, so choose the layout deliberately. |

What replaces what in SQL Server?
| In Db2 | Usually becomes in SQL Server | Watch for |
|---|---|---|
| SQL PL stored procedures, functions and triggers | T-SQL stored procedures, functions and triggers | Dialect and transaction differences above. This is where most manual review goes. |
| Command line processor and utilities | sqlcmd, SQL Server Management Studio, bcp and BULK INSERT | Scripts that depend on Db2 utilities, options or output format. |
| Scheduled jobs, JCL and shell scripts | SQL Server Agent jobs and SQL Server Integration Services packages | Dependencies between jobs, restart points and the order they run in. |
| Legacy ETL routines | SQL Server Integration Services or Azure Data Factory, with incremental processing | Full extracts that reprocess unchanged records, and rules duplicated across scripts. |
| High availability and replication features | Always On availability groups (Enterprise), basic availability groups and failover cluster instances (Standard) | Standard supports basic availability groups with two replicas and one database. Match the design to your recovery goals. |
| Monitoring tools | Query Store and dynamic management views | Baselines from before the move, so regressions can be spotted afterward. |
| Warehouse structures and summary tables | Fact and dimension tables with columnstore indexes (Standard and Enterprise) | Operational tables keep designs suited to short transactions, and large fact tables get columnstore. |
| Users, groups and privileges | Logins, users and roles, with Microsoft Entra authentication where it fits | Privileges granted through groups or the operating system need a redesign. |
How do you move the data and code from Db2 to SQL Server?
Code and schema. SSMA for Db2 connects to the Db2 source and the SQL Server target, converts database objects, loads the converted objects and migrates the data. It needs the Microsoft OLE DB Provider for Db2 (version 5 or later) and connectivity to your Db2 databases, and it runs on Windows. It creates a helper schema in the target database that holds the tables and procedures needed for data migration and the functions that emulate Db2 system functions. Its conversion settings are where judgment comes in, including how Db2 schemas map to SQL Server, how sequences are converted, and how transactions are handled. Treat its output as a first pass that is reviewed and tested, not as finished code.
Data. The usual options each have a trade-off:
- SSMA data migration loads tables as part of the conversion project and suits an initial load and rehearsals.
- Azure Data Factory has a Db2 connector that supports Db2 for z/OS 12.1 and 11.1, Db2 for i 7.1 to 7.3 and Db2 for LUW 11, 10.5 and 10.1 over the DRDA protocol. It includes a built-in driver and works with a self-hosted integration runtime for servers on your own network.
- SQL Server Integration Services with the Microsoft OLE DB Provider for Db2 suits repeatable, scheduled loads and transformations.
- Change replication keeps SQL Server synchronized with Db2 while the old system stays in production, which shortens the final outage. It is a separate workstream from schema conversion and needs a tool that works with your Db2 platform.
When a connection fails with SQLCODE -805, the package for the statement was not found for that user. Microsoft’s Data Factory documentation suggests setting the package collection (for example NULLID) so packages are created where the user can reach them. Small details like this are why a rehearsal comes before any cutover.
What are the options for the overall design?
| Route | What happens | Best for | Trade-off |
|---|---|---|---|
| A. Stay and upgrade Db2 | Move to a newer Db2 release and fix the batch and reporting problems directly. | Cases where the pain is processing design, not the engine. | Contracts and the skills gap remain. |
| B. Move OLTP and warehouse separately | Convert the transactional databases and rebuild the warehouse as its own SQL Server environment with redesigned ETL. | Insurers, distributors and others with transactional systems and a reporting warehouse. | Two designs to build, each tuned for its workload. Run reporting side by side before switching. |
| C. Synchronized cutover | Load history in advance, keep changes synchronized, then use a short scheduled write pause for the final switch. | Systems that cannot be offline for long. | More design and tooling, and a rollback plan that distinguishes before and after new writes. |
| D. Phased by application | Move one application or subject area at a time. | Large estates, especially mainframe-hosted. | Both platforms run for a while, so the interfaces between them must be managed. |
Our approach follows seven steps:
- Discover: identify the Db2 family and version, then inventory databases, objects, programs, batch jobs, feeds, reports and who depends on each.
- Assess: run SSMA’s assessment and review its warnings and errors by hand. Sort code into converts cleanly, needs review (transactions, NULL ordering, timestamps, character data) and needs redesign.
- Architect: choose the route, separate SQL Server designs for transactions and analytics where they are needed, the target edition or Azure SQL service, collation, security and scheduling.
- Plan: a three-year cost model, the load and synchronization plan, test scenarios, the cutover window, and rollback decision points.
- Implement: convert schema and code, load history, build the staging and warehouse layers with tracked batches and safe retries, and rebuild jobs.
- Validate: reconcile record counts, financial control totals and balances, test business scenarios and failure paths, run reports side by side, and rehearse the cutover and rollback.
- Support: monitor the new platform, document it, hand it over, and retire the Db2 systems and contracts once the new results are accepted.
What usually breaks when you move from Db2 to SQL Server?
Most problems are known and fixable, which is why the assessment comes first. These show up most often:
- Transaction boundaries that Db2 began implicitly and SQL Server does not.
- Concurrent updates that behaved one way under Db2’s isolation levels and behave differently under SQL Server’s locking.
- NULL ordering in reports and paging.
- Timestamp precision beyond seven digits, and comparisons on timestamps.
- Character data that was stored in EBCDIC, or numbers stored in character columns.
- Application SQL and packages that cannot be reused unchanged.
- Full-extract batch jobs that were carried over as-is and still reprocess unchanged records.
- Backdated entries such as endorsements, reopened claims and adjustments, which change historical totals unless the design separates transaction dates, business-effective dates and reporting periods.
- Failed loads that restart from the beginning and can duplicate or skip records.
- Rollback that is harder than expected once the new system has accepted business transactions.
What does it look like when a Db2 insurer moves to SQL Server?
Here is an anonymized example. A regional property and casualty insurance company depended on IBM Db2 for Linux, UNIX and Windows for daily policy, claims and billing activity, with a separate Db2 reporting warehouse that supplied management reports, underwriting analysis and financial information. Business users worked across policy administration, claims, billing, underwriting and analytics. Over time the processing environment had become difficult to change: overnight jobs repeatedly extracted large datasets, transformation rules were scattered across scripts and reports, and failed processing often needed substantial rework. Departments also read the same data differently. A policy endorsement could appear in operational reporting before it reached the warehouse, and a reopened claim or backdated adjustment could change historical totals with no clear explanation of what had changed. The company wanted to move to SQL Server while improving how data was collected, transformed, reconciled and delivered, and protecting policy servicing, claims activity and billing during the transition was a central requirement. Everconnect built separate SQL Server environments for online transaction processing and for the data warehouse, with redesigned ETL, incremental data processing and shared reporting definitions.

| Business or technical challenge | Modernization response |
|---|---|
| Full extracts repeatedly processed records that had not changed, extending the overnight batch window. | Introduced incremental processing that identified inserts, updates and deletions, with controlled initial loads and periodic reconciliation. |
| Policy, claims and billing systems used inconsistent customer, agency and product identifiers. | Established shared mappings and conformed warehouse dimensions, with unresolved records routed to an exception process. |
| Business rules were duplicated across ETL scripts, departmental spreadsheets and reports. | Centralized approved transformation rules and documented their definitions, ownership and effective dates. |
| Backdated endorsements and reopened claims could make historical reports inconsistent. | Separated transaction dates, business-effective dates and reporting periods, preserved relevant history and defined how affected periods were recalculated. |
| A failed load required restarting large portions of the nightly process. | Added batch tracking, restart points and repeatable processing so a retry would not duplicate transactions or silently skip records. |
| Large analytical queries competed with operational activity. | Kept transactional and warehouse workloads in separate SQL Server environments, with storage, indexing and processing schedules suited to each. |
| Db2-specific SQL and stored logic could not be moved unchanged. | Assessed and converted database objects, then tested data types, decimal precision, date handling, transaction behavior and application queries. |
| Moving the full dataset during an outage would create an unacceptable business interruption. | Loaded historical data in advance and synchronized subsequent changes before a controlled final cutover. |
Modernizing the transactional environment. The OLTP migration focused on preserving the behavior of the applications employees used throughout the day. Policy updates, claim transactions, billing adjustments and payment records needed consistent relationships and reliable transaction boundaries, so testing went beyond checking whether tables and stored procedures had converted. The validation scenarios included:
- Backdated policy endorsements and cancellations.
- Claim reopening and reserve adjustments.
- Partial payments, reversals and billing corrections.
- Concurrent updates to related records.
- Transactions interrupted before completion.
The SQL Server design used indexes suited to frequent lookups and short transactions, and application queries and isolation behavior were reviewed against representative workloads instead of assuming the new engine would behave identically.
Building a smarter ETL and warehouse process. The warehouse work redesigned how information became usable business data:
- Capture changes efficiently. Initial loads established the baseline. Later processing handled changed records, including deletions, instead of rebuilding every dataset, and source positions and completed batches were tracked to support reconciliation and recovery.
- Preserve source traceability. Staging records kept their source identifiers, extraction batch and processing status, so analysts could trace a reported amount back through the transformation process.
- Standardize business meaning. Customer, agency, coverage and product mappings created consistent reporting categories, and premium, claim payment and reserve measures used approved definitions.
- Handle insurance history explicitly. Effective-dated dimensions preserved changes to attributes where historical reporting needed them, and late-arriving records and backdated transactions triggered controlled updates to the affected warehouse periods.
- Detect exceptions before publication. Validation checked missing references, duplicate transactions, unexpected status values and financial control totals, and exceptions were surfaced for review instead of disappearing into a failed job or an incomplete report.
- Optimize for analysis. The warehouse used fact and dimension structures organized around reporting needs, with columnstore indexes on suitable large fact tables, while operational tables kept designs suited to transactional access.
Minimizing business impact during cutover. Historical data was loaded into SQL Server while Db2 remained the operational system of record. A Db2-compatible change-replication process kept the target synchronized as business activity continued, and schema conversion and ongoing replication were treated as separate workstreams. The new warehouse ran alongside the existing reporting process, and finance and business teams compared premium, billing, claim payment and reserve totals before reports were switched. For the transactional cutover, the plan used a short, scheduled write pause:
- Pause application writes and relevant inbound interfaces.
- Allow in-flight transactions to finish and apply the remaining captured changes.
- Confirm synchronization and reconcile critical balances and record counts.
- Redirect applications and integrations to SQL Server.
- Validate essential policy, claims and billing workflows before reopening normal access.
Rehearsals established the sequence, responsibilities and acceptance criteria, and the change was scheduled outside peak processing and financial-close periods. Rollback decisions distinguished between the period before SQL Server accepted new business transactions and the period afterward. Returning to Db2 after new writes would mean preserving and reconciling those transactions, not simply changing a connection string.
What the company gained.
- More efficient data processing. Incremental loads reduced unnecessary extraction and transformation work.
- More consistent insurance reporting. Shared definitions and explicit historical handling made departmental figures easier to reconcile.
- Better separation of operational and analytical workloads. Warehouse processing could be tuned without placing the same demands on transaction systems.
- More recoverable ETL. Batch tracking, exception handling and safe retries reduced the need to restart entire processing cycles.
- Clearer data lineage. Source identifiers and transformation records made it easier to investigate how a reported figure was produced.
- A controlled business transition. Advance loading, ongoing synchronization and rehearsed acceptance checks concentrated the final interruption on the remaining changes and the application switch.
Why it matters. The migration improved the insurer’s data processes as well as its database platform. SQL Server provided a common technology foundation for transaction processing and analytics, separate workload designs protected their different needs, redesigned ETL turned source records into more consistent, traceable reporting data, and a staged transition kept business continuity central to the plan.
How do you work out whether the move will save money?
We do not quote a percentage saving. Db2 and SQL Server licensing, support terms and hardware differ by customer, and published estimates rest on assumptions that may not match yours. A useful comparison is a three-year cost model built from your own numbers:
- Db2 side: licensing and support contracts, servers or mainframe capacity, storage, tools, and the people who keep the environment and its batch jobs running.
- SQL Server side: the edition that fits the workload, licensing method, infrastructure, backup and monitoring.
- One-time costs: assessment, conversion and review, ETL redesign, rehearsals, parallel running, testing, application changes, cutover and knowledge transfer.
- Ongoing differences: contracts and platforms you can retire, failed or reworked nightly runs you stop having, and the skills you still need to keep.
Almost all Everconnect consulting work over the last 24 months has been billed between $125 and $145 per hour. There are no setup fees and no minimum contract length. We estimate after the free, no-obligation discovery call and an assessment. See our pricing page for the full picture.
Which SQL Server should you move to?
Pick a supported target. SSMA for Db2 lists SQL Server 2019 and later on Windows and Linux, plus Azure SQL Database and Azure SQL Managed Instance. SQL Server 2016 ended support on July 14, 2026, so a project starting now should look at SQL Server 2022 or 2025, or Azure SQL. Microsoft lists SQL Server 2025 Standard at up to 4 sockets or 32 cores and 256 GB of buffer pool memory, with SQL Server Agent included and basic availability groups for two-replica, single-database designs, while Enterprise edition lifts those limits and adds full availability groups. Columnstore indexes are available in Standard and Enterprise, which helps the warehouse side, and transactional and analytical workloads are often placed in separate SQL Server environments so each can be tuned for its own needs.
Where should you start this week?
- Identify every Db2 instance: which family (LUW, z/OS or i), which version, and the date IBM lists for that release.
- List the databases, their sizes, owners and the applications that connect to them.
- Inventory the batch jobs, extracts, ETL routines and reports, and how often they fail or need to be restarted.
- Write down the definitions that must not change: premium, claim, balance and status measures, and how backdated and reopened items are handled.
- Find the applications that use static SQL packages or embedded SQL, and who can change them.
- Name the longest outage the business can accept, and the financial-close and peak periods to avoid.
- Decide the goal: lower cost, one platform, better reporting, easier hiring, or all of them.
Migrating is also how you get AI-ready data
A migration from Db2 is the best time to fix the data, not just move it. Long-running Db2 systems often carry cryptic column names and codes that need documenting. While every table is mapped to SQL Server, duplicates can be matched, codes standardized and columns described, which is the same work that makes data usable for AI. In the RSM Middle Market AI Survey 2026, data quality and availability was the most-cited obstacle to deploying AI (34 percent), and 28 percent named legacy systems integration. Those figures describe the survey respondents, not Everconnect clients. See AI for Your Data for how we start with a data readiness review.
Get help
Everconnect Data Systems provides migrations from Db2 to SQL Server and Azure SQL, including ETL and data warehouse redesign. Book a free, no-obligation discovery call to talk through your Db2 environment, or see our database migration services, SQL Server consulting services and managed database services. Once the data is in SQL Server, the SQL Server Health Check ($499 per server) can review the new server’s configuration, security and backups.
Frequently asked questions
The reasons we hear most are support and licensing terms, the support dates IBM publishes for each release, fewer people who know Db2, an existing SQL Server footprint to consolidate onto, and batch and ETL processing that has become hard to change or recover. Every organization has its own mix, so we start by listing yours and testing it against a three-year cost model.
Yes. SQL Server Migration Assistant (SSMA) for Db2 is free from Microsoft. It connects to the Db2 source and the SQL Server target, converts database objects, loads them and migrates the data. It needs the Microsoft OLE DB Provider for Db2 and runs on Windows. It does not move your applications, schedulers or ETL, so those are handled separately.
Microsoft says SSMA is designed to work with Db2 on z/OS versions 9.0 and 10.0 and later, Db2 on LUW versions 9.8 and 10.1 and later, and Db2 for i 7.1 and later. Supported targets are SQL Server 2019 and later on Windows and Linux, Azure SQL Database and Azure SQL Managed Instance. Confirm your exact version against Microsoft’s current documentation.
Yes, and SSMA supports it, but it is usually a bigger project than Db2 LUW because the database is tied to COBOL and other programs, batch jobs and online systems. Character data is often stored in EBCDIC code pages and must be converted, and numbers packed into character columns must be found. We plan these as application migrations, often in stages.
Yes. Azure Data Factory has a Db2 connector that uses the DRDA protocol and a built-in driver, and it supports Db2 for z/OS 12.1 and 11.1, Db2 for i 7.1 to 7.3 and Db2 for LUW 11, 10.5 and 10.1. A self-hosted integration runtime is used for servers on your own network. If a query fails with SQLCODE -805, set the package collection (for example NULLID).
Common choices are DATE to date, TIME to time, TIMESTAMP to datetime2, CHAR and VARCHAR to char and varchar or Unicode types, FOR BIT DATA columns to binary types, BLOB to varbinary(max) and CLOB to varchar(max). Timestamps above seven fractional digits, decimal precision and Db2-specific types need explicit decisions, and each mapping is tested with real data.
SSMA converts many procedures, functions and triggers into T-SQL and flags the rest, and a person reviews the output. The review focuses on transaction handling, error handling, cursors, special registers and syntax such as FETCH FIRST, which becomes TOP or OFFSET and FETCH. We test each converted routine against the original’s results before it is accepted.
In Db2 a unit of work starts implicitly and the default isolation level is cursor stability. SQL Server’s default is autocommit, so implicit transactions need an explicit BEGIN TRANSACTION or SET IMPLICIT_TRANSACTIONS. SQL Server’s default READ COMMITTED level uses locks unless READ_COMMITTED_SNAPSHOT is on. Test concurrent updates such as payments and reversals before cutover.
In Db2, NULL values sort as the highest values, so ascending order puts them last. In SQL Server, NULL values are the lowest, so ascending order puts them first. Reports, paging and any logic that depends on order can change, so ordering rules are made explicit.
Db2 TIMESTAMP values can carry 0 to 12 fractional-second digits, with a default of 6. SQL Server’s datetime2 supports 0 to 7 digits and the same year range, 0001 to 9999. If your data uses more than seven digits, decide what to keep, and check any code that compares or joins on timestamps.
Treat it as a redesign, not a copy. A common pattern is incremental processing instead of full extracts, controlled staging that keeps source identifiers, batch and status, central transformation rules, validation with exception handling, and effective-dated dimensions for history. SQL Server Integration Services or Azure Data Factory run the loads, and columnstore indexes (Standard and Enterprise) suit large fact tables.
Load historical data in advance while Db2 remains the system of record, keep changes synchronized with a change-replication process, then use a short scheduled write pause for the final switch: pause writes, apply remaining changes, reconcile balances and counts, redirect applications and validate key workflows. Rehearsals and a rollback plan come first. Our guide to migration with minimal downtime compares the methods.
Before SQL Server accepts new business transactions, rollback is a controlled decision. After new writes, returning to Db2 means preserving and reconciling those transactions, not just changing a connection string. We define the rollback decision points in the plan and rehearse them, so the team knows which situation it is in.
By reconciliation and business testing. Compare record counts, financial control totals, balances and status values, then run real scenarios such as backdated endorsements, claim reopening, partial payments, reversals and concurrent updates. Run the new reports alongside the old ones and compare premium, billing, claim payment and reserve totals before switching.
IBM publishes support dates for each Db2 release and edition, so the answer depends on what you run. Check IBM’s lifecycle pages for your exact release. The practical question is whether to upgrade within Db2 or plan a move before your date, and a three-year cost model helps compare the two.
It depends on the Db2 family, the number of databases, how much code and how many applications must change, how many jobs and feeds surround them, whether the warehouse and ETL are redesigned too, and how much testing the business needs. A written assessment turns those counts into an estimate. We do not quote a duration before we have seen the environment.
Almost all Everconnect consulting work over the last 24 months has been billed between $125 and $145 per hour, so 40 hours is about $5,000 to $5,800 and 80 hours about $10,000 to $11,600. A migration is a larger engagement than that, and we estimate after the free, no-obligation discovery call and an assessment. There are no setup fees and no minimum contract. See our pricing page.
Not automatically. A migration moves the data; whether it is ready for AI depends on whether duplicates, inconsistent codes and undocumented columns are fixed along the way. Long-running Db2 systems often carry cryptic column names and codes that need documenting. Mapping every table is a natural time to fix those. See AI for Your Data.
Related guides
- Migrating legacy databases to SQL Server: the complete guide
- Is your business running on a Microsoft Access app? What to do before it breaks
- Is your business running on Excel spreadsheets? When to move to SQL Server
- Should you migrate from Oracle to SQL Server? Costs, risks and how it works
- Should you migrate from SAS to SQL Server? Reasons, risks and how it works
- Should you migrate from Sybase (SAP ASE) to SQL Server? Reasons, risks and how it works
- Should you migrate from PostgreSQL to SQL Server? When it makes sense and when it doesn’t
- Should you migrate from MySQL to SQL Server? Reasons, risks and how it works
- Is your business trapped on Visual FoxPro? How to migrate to SQL Server safely
- SQL Server migration with minimal downtime: methods compared
- How to choose a SQL Server migration consultant (and what to ask)
Updated November 2, 2026. Written by Nathan Jaskot, founder of Everconnect Data Systems, a US-based, veteran-owned database consulting firm founded in 2010. IBM and Microsoft facts were checked against their documentation on that date (sources below). Confirm your own Db2 platform, version and its support dates with IBM.
Sources (checked November 2, 2026)
- Microsoft Learn: SQL Server Migration Assistant for Db2 (Db2ToSQL)
- Microsoft Learn: Install SSMA for Db2 client (supported Db2 versions and prerequisites)
- Microsoft Learn: Project Settings (Conversion) for SSMA for Db2
- Microsoft Learn: Copy data from DB2 with Azure Data Factory
- Microsoft Learn: Host Integration Server data type conversions (DB2 to SQL Server)
- IBM Db2 11.5 documentation: Isolation levels
- IBM Db2 11.5 documentation: Datetime values (TIMESTAMP precision)
- Microsoft Learn: datetime2 (Transact-SQL)
- Microsoft Learn: ORDER BY clause (NULL ordering)
- Microsoft Learn: SET IMPLICIT_TRANSACTIONS
- Microsoft Learn: Transaction locking and row versioning guide
- Microsoft Learn: Editions and supported features of SQL Server 2025
- Microsoft Lifecycle: Ending support in 2026
About the author. Nathan Jaskot is the founder of Everconnect Data Systems, Inc., a US-based, veteran-owned database and technology consulting company he started in 2010. Everconnect works with SQL Server, PostgreSQL, MySQL, Oracle, Azure and AWS. Learn more about Everconnect.






