Quantcast
Channel: SCN : All Content - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6745

Sybase ASE To HANA

$
0
0

Hi,

This is my first Blog, so if I don't articulate properly please pardon me .</p>

Recently I worked in a project which involved Migrating the few tables and stored procedures from Sybase ASE database to HANA Database.

ASE adheres to TSQL standard  and HANA adheres to ANSCII standard. So the Migration involved lot of changes in the HANA Stored procedures. I would like to highlight few of the most important changes:

1) Cursor with parameter within a cursor is not accepted. so as a work around I have changed the code as below:

Cursor :C_PARTY_DETAILS

Orginal:

H1.jpg

Changed:

h2.jpg

2)Cursor variables doesn’t require “:”

Orginal:

h3.jpg

Changed:

h4.jpg

3)System is not allowing to access the Cursor in any Concat operation

Orginal:

h5.png

Changed:

h6.png

4) Functions have to be used in select statements cannot be assigned directly to a variable.

h7.png

5)Null handling inside the Arithmetic functions is not necessary.

6)Domains have to be changed to Local Data Type

7)Mixed Cases (Lower & Upper) have to be handled in”.

h8.png

Here the column name unitized_flag is maintained in lower case in table itself.

8)In control flow statements like “IF” Range comparison is not allowed(between, In)

h9.png

h10.png

9)Error Handling via Exit Handler

h11.png

10) In Dynamic construct have to use "||" instead of  "+"

h12.png

h13.png

11) Update from multiple tables has to be changed

h14.png

12) IS Null has to be changed to If Null

13) Function Convert to Cast

14)Date functions have to be adjusted

h15.png

15)Recompile should be changed to Alter procedure recompile

16)Case statements within a procedure not allowed


h16.png

This CASE has to be taken outside and converted to IF.

h17.png

17)Identity in DDL has to be changed to Synonyms.

18) Calling procedure with NULL is not allowed it has to be replaced with calling with string “NULL”

I hope this Blog is useful for some Data Migration Projects


Viewing all articles
Browse latest Browse all 6745

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>