I want to recreate the table below in SQL server I have tried using SSIS but it does not know how to handle the lOV Data type how can I recreate this table in SQL server and migrate the data to it.
create Table Listing
(
NAME VARCHAR2(30),
VALUES NUMBER,
LIST_OF_VALUES LOV,
id VARCHAR2(30)
);
I am new at trying to converting this type of data or data type, in general, your help would be appreciated.
Best Answer
User Defined Types (UDT) in Oracle
Many 3rd party software cannot handle UDTs. These include
Oracle APEX
, andSSIS
.This is only one, of many, problems with using a UDT for a Column's data type.
MS SQL
I don't know if MS-SQL has the same problem with UDTs. I'm guessing "yes".
I'm guessing
LOV
is aTABLE OF ...
data type. If so, create a child table of the type's attributes along with a foreign key to theListing
table.SSIS
To enable SSIS to see the data, I recommend you
CREATE VIEW
.Then:
Listing
columns (exceptList_of_Values
) to the MS-SQLListing
table.Listing_LOVs
values the the child table.XML Version
Per Laughing Vergil's comment: XML Document could be another method.
The column
List_of_Values_XML
will appear as aCLOB
to 3rd party apps (eg SSIS)