1
Context: Currently I work in a system that uses the database oracle, but now I’m going to need the system to use sqlserver.
My goal is to convert DDL
and DML
for sqlserver, I see there are some differences like:
Number
for Numeric
Varchar2
for Varchar
Data
for DataTime
However I wanted to do it automatically, or at least have the equivalences more fully to help in this process.
It would also be interesting to comment on the difficulty I may have
for I also have Triggers
, Procedures
, Functions
, etc..
Thank you
I think that there is no direct solution to what you want. You have some experience with programming with Java?
– Krismorte
No, but if you have any idea.. even in Java, it’s something already :)
– David
Right. In java there is JPA technology created to make programs database-independent. You create the classes and use Annotation and from the classes the tables in the database are created. Here enters my idea JPA also allows that from a database the classes are created. My idea is to create the classes from JPA and with these classes, changing the connection, create the tables in SQL Server.
– Krismorte
In the data question I think that the import/export of SQL Server itself can query in Oracle and load in SQL. Otherwise you can create a java program just for this. Now Trigger, Procedure and Function will have to converted in the same hand.
– Krismorte
Interesting @Krismorte thanks
– David