Hi Geert,
I discussed your idea with our Oracle/SQL Server database specialist/developer. He is not able to whip something up in a day or so.
What programming language would be the likely candidate for writing a script that transfers tables from Oracle to SQL Server?
Anything I guess, whatever the developer is used to.
If I needed to write something like that it would probably be C# or vbscript with some parts in plain SQL.
I think, if I was tasked with something like that I would do it in two parts:
- write an export for every table in Oracle to a .csv file -> this could probably be written in plain SQL
- Write an import routine to import the data from the .csv file into SQL server. I might write a small C# program, or a VBScript, or maybe even an SSIS package to import the data. A C# program would be as simple as read a csv line, construct an insert SQL statement, execute statement, rinse and repeat. If that is too slow you might even be able to use SQL server
Bulk Insert (which is super fast), but then you'll have to make sure the .csv file has exactly the format as expected by SQL server.
for the import, before starting the import you would have to disable all constraints (and enable them again after the import has finished)
I think most of the data would be easy to migrate, but for some fields you might need to transform the data a bit to make them fit in SQL Server. (that could be things like datetime formats, boolean formats (TRUE/FALSE vs 0/1) etc...)
Geert