THIS SITE USES COOKIES: By continuing to browse this site, you give your consent for cookies to be used.
For more details, please read our Privacy Policy and Cookies Policy.

Automated and Customizable
Database and Application
Migration and Modernization

Migrate Microsoft SQL Server to SAP HANA

SAP HANA

Ispirer MnMTK is a powerful tool that automatically converts stored procedures, functions, triggers, database schema (DDL) and other database objects from SQL Server to SAP HANA. We help our clients to understand the value of automated database and application migration solutions that enable business growth.


SQL Server to SAP HANA Migration Overview

The tool migrates the following database objects and properties to SAP HANA:

  • Stored Procedures, Functions and Triggers conversion
  • DDL and DML conversion
  • Indexes and Views conversion
  • Transfers Data

DDL and DML statements conversion:

  • Converts columns definitions - data types, default values, NOT NULL constraints
  • Converts IDENTITY properties. Ispirer MnMTK creates SEQUENCE for IDENTITY column. SEQUENCE can be used in DML statements for auto incrementing column values
  • Converts primary and foreign keys

SQL Server:

  1. CREATE TABLE [dbo].[DimPromotion](
  2. [PromotionKey] [INT] IDENTITY(1,1) NOT NULL,
  3. [PromotionAlternateKey] [INT] NULL,
  4. [DiscountPct] [FLOAT] NULL,
  5. [EnglishPromotionType] [nvarchar](50) NULL,
  6. [SpanishPromotionType] [nvarchar](50) NULL,
  7. [FrenchPromotionType] [nvarchar](50) NULL,
  8. [EnglishPromotionCategory] [nvarchar](50) NULL,
  9. [SpanishPromotionCategory] [nvarchar](50) NULL,
  10. [FrenchPromotionCategory] [nvarchar](50) NULL,
  11. [StartDate] [datetime] NOT NULL,
  12. [EndDate] [datetime] NULL,
  13. [MinQty] [INT] NULL,
  14. [MaxQty] [INT] NULL
  15. ) ON [PRIMARY]
  16. GO
  17.  
  18. INSERT INTO [dbo].[DimPromotion] ([PromotionAlternateKey],
  19. [StartDate]) VALUES (123, GETDATE())
  20. GO
  21.  

SAP HANA:

  1. CREATE TABLE DimPromotion
  2. (
  3. PromotionKey INTEGER NOT NULL,
  4. PromotionAlternateKey INTEGER NULL,
  5. DiscountPct FLOAT NULL,
  6. EnglishPromotionType NVARCHAR(50) NULL,
  7. SpanishPromotionType NVARCHAR(50) NULL,
  8. FrenchPromotionType NVARCHAR(50) NULL,
  9. EnglishPromotionCategory NVARCHAR(50) NULL,
  10. SpanishPromotionCategory NVARCHAR(50) NULL,
  11. FrenchPromotionCategory NVARCHAR(50) NULL,
  12. StartDate TIMESTAMP NOT NULL,
  13. EndDate TIMESTAMP NULL,
  14. MinQty INTEGER NULL,
  15. MaxQty INTEGER NULL
  16. );
  17. CREATE SEQUENCE DimPromotion_seq START WITH 1 INCREMENT BY 1;
  18.  
  19. INSERT INTO DimPromotion(PromotionKey, PromotionAlternateKey,
  20. StartDate) VALUES(DimPromotion_seq.NEXTVAL, 123, CURRENT_TIMESTAMP);
  21.  

Stored Procedures conversion:

  • Converts procedures syntax and statements
  • Converts variables and parameters
  • Converts comments

SQL Server:

  1. CREATE PROCEDURE SP_DYNAMIC @TB_NAME VARCHAR,
  2. @SWV_Ret DECIMAL OUT
  3. AS
  4. DECLARE @GRP_TBL_SQL VARCHAR(50)
  5. SET @GRP_TBL_SQL = 'DROP TABLE ' + @TB_NAME + ';'
  6. EXECUTE ( @GRP_TBL_SQL)
  7. SET @SWV_Ret = 1
  8.  

SAP HANA:

  1. CREATE PROCEDURE SP_DYNAMIC (TB_NAME VARCHAR(1),
  2. INOUT SWV_Ret DECIMAL)
  3. LANGUAGE SQLSCRIPT
  4. AS
  5. GRP_TBL_SQL VARCHAR(50);
  6. BEGIN
  7. GRP_TBL_SQL := 'DROP TABLE '+:TB_NAME+';';
  8. EXECUTE IMMEDIATE :GRP_TBL_SQL;
  9. SWV_Ret := 1;
  10. END
  11.  

Stored Functions conversion:

  • Converts syntax and statements
  • Converts variables and parameters
  • Converts comments

SQL Server:

  1. CREATE FUNCTION [ufnLeadingZeros] (
  2. @VALUE INT
  3. )
  4. RETURNS VARCHAR(8)
  5. WITH SCHEMABINDING
  6. AS
  7. BEGIN
  8. DECLARE @ReturnValue VARCHAR(8);
  9. SET @ReturnValue = CONVERT(VARCHAR(8), @VALUE);
  10. SET @ReturnValue = SUBSTRING (@ReturnValue,1,1) + @ReturnValue;
  11. RETURN (@ReturnValue);
  12. END
  13.  

SAP HANA:

  1. CREATE PROCEDURE ufnLeadingZeros
  2. (OUT RETURNVAL VARCHAR(8),VALUE INTEGER)
  3. LANGUAGE SQLSCRIPT
  4. AS
  5. ReturnValue VARCHAR(8);
  6. BEGIN
  7. ReturnValue := CAST(:VALUE AS VARCHAR(8));
  8. ReturnValue := SUBSTRING(:ReturnValue,1,1)+:ReturnValue;
  9. RETURNVAL :=(:ReturnValue);
  10. END
  11.  

Triggers conversion:

SQL Server:

  1. CREATE TRIGGER [dbo].[tr_fn_update]
  2. ON [dbo].[Customer]
  3. FOR UPDATE
  4. AS
  5. DECLARE @upd INT
  6. SET @upd =1
  7. IF UPDATE(StoreID)
  8. BEGIN
  9. DELETE FROM [dbo].[TblRec]
  10. END;
  11. IF UPDATE(TerritoryID)
  12. BEGIN
  13. INSERT INTO [dbo].[TblRec] VALUES(@upd)
  14. END
  15.  
  16. GO
  17.  

SAP HANA:

  1. CREATE TRIGGER tr_fn_update
  2. AFTER UPDATE
  3. ON Customer
  4. REFERENCING NEW ROW NEW, OLD ROW OLD
  5. FOR EACH ROW
  6. BEGIN
  7. DECLARE v_upd INTEGER;
  8. v_upd := 1;
  9. IF :OLD.StoreID != :NEW.StoreID THEN
  10. DELETE FROM TblRec;
  11. END IF;
  12. IF :OLD.TerritoryID != :NEW.TerritoryID THEN
  13. INSERT INTO TblRec VALUES(:v_upd);
  14. END IF;
  15. END;
  16.  

Views conversion:

SQL Server:

  1. CREATE VIEW [dbo].[VW_INNER_DATE]
  2. AS
  3. SELECT
  4. A.ModifiedDate
  5. FROM
  6. dbo.Test_Default B
  7. INNER JOIN dbo.Customer A ON
  8. B.C6 <= GETDATE() AND
  9. '20500101' > GETDATE()
  10.  
  11. GO
  12.  

SAP HANA:

  1. CREATE VIEW VW_INNER_DATE
  2. AS
  3. SELECT
  4. A.ModifiedDate
  5. FROM
  6. Test_Default B
  7. JOIN Customer A ON
  8. B.C6 <= CURRENT_TIMESTAMP AND
  9. '20500101' > CURRENT_TIMESTAMP;
  10.  

Ispirer MnMTK Features for SQL Server to SAP HANA Migration

  • Quick and Useful Conversion of SQL Scripts - You can easily start converting existing SQL scripts - DDL statements, database SQL dump, SQL queries etc.
  • Conversion with Database Connection - Ispirer MnMTK can connect to SQL Server, extract and convert the entire database or just specified objects and schemas
  • Generates SQL scripts in SAP HANA syntax
  • Command Line Support can help you automate the migration process
  • Migration Validation - The tool can compare the number of tables, the number of rows, and perform data validation for all or selected columns (based on primary keys or specified order clause)

Why Ispirer MnMTK for Migrating from Microsoft SQL Server to SAP HANA

Our powerful toolkit alongside with comprehensive support ensure low cost and nearly 100% automation of migration.

  • ~100% Automation - For all migration tasks: DDL, server-side business logic, SQL syntax in front-end applications and scripts. Key Features
  • Fast Customization - Free fixes within 1-2 business days
  • Pre-Sale Engagement - We demonstrate full conversion during the evaluation before you make a decision. Engagement Process
  • Low Cost - We offer flexible pricing
  • Optimized Conversion - Intelligent and maintainable code, no any Ispirer's middleware used after conversion

When you need to migrate from MS SQL Server to SAP HANA we are right here to help you!

Try the Toolkit

Ispirer MnMTK 2017

MS SQL Server to SAP HANA

Data and SQL SQL Data

Estimate Your Project

Ispirer MnMATK 2017

MS SQL Server to SAP HANA

Download

Purchase the Toolkit

Ispirer MnMTK 2017

MS SQL Server to SAP HANA

Data and SQL SQL Data

Purchase Service

Ispirer Migration Service

MS SQL Server to SAP HANA

Data and SQL SQL Data

You can also reach us via Contacts page.

 
SAP HANA Database

SAP HANA SP08 and earlier

SQL Server Databases

Microsoft SQL Server 2016, 2014, 2012, 2008, 2005, 2000, 7.0 and 6.5

Microsoft SQL Server Parallel Data Warehouse (PDW) 2012

Testimonials
September 29, 2014Presbyterian Homes, United States
Oracle to Microsoft SQL Server Migration

"When we set out to migrate our existing Oracle database into Microsoft SQL Server we contacted the experts at Ispirer Systems and their SQLWays...

...

February 17, 2014ATX II Tecnologias de Software, S.A., Portugal
Informix to MS SQL Server Migration

"We were challenged to perform a massive migration project in one of our major Spanish customers in the financial area that involved a database migration from...

...

Case Studies
May 24, 2014Microsoft SQL Server to Oracle Migration, Belgium

Our client was one of the world’s leading retailers with over 10 thousand stores in more than thirty countries. The company serves around 10 million customers daily worldwide by offering them a...

...

February 10, 2014Microsoft SQL Server to Greenplum Migration, South Africa

Our Johannesburg-based client is one of the largest banks in South Africa. The bank has more than one thousand staffed branches in South Africa and maintains a substantial market share in...

...

Feedback

We’re successfully tested the tool and we’re interested in buying the licence.

Read more
Industry Events