on 10-21-2016 8:52 AM - last edited on 02-04-2024 7:04 AM by postmig_api_4
Hello,
Currently we are using ‘SQL Server’ as a backend database. We have a requirement to provide support for HANA database.
We are maintaining all the database changes in a ‘.sql’ Script. We would prefer to maintain a single script for both HANA and SQL Server.
Attached file (syntax-difference-sql-server-vs-hana.png) contains some of the syntax differences we have found. Also there are differences in the way Triggers, functions and Views are written in SQL Server and HANA
Could you please suggest if it is possible to maintain a single script that can be executed on both HANA and SQL Server?
Each product has its own database language, I don't think you can maintain such scripts for both of them.
What you can do is to study the languages of both databases and create a program that would generate scripts automatically based on the selected database. I've done that in the past when I worked on a database migration to SQL Server and worked well for me.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.