I have a view in Oracle from which I am reading data and inserting in SQL Server. When I run "desc myview" command then it returns the following:
FIELD1
NUMBER
FIELD2
NUMBER
As you can see both field types are NUMBER. I created similar table in SQL Server with field type "INT" but when records are inserted, in FIELD2 it is inserting -1861 and sometimes 1876 instead of actual value from Oracle. FIELD1 data is fine.
I have checked that data in Oracle is fine and have no issues. I have tried changing INT to FLOAT but still same issue. What could be the reason?
EDIT
By the way even the "Preview" in SSIS packages shows wrong values. You know when I drag and drop that Oracle Source from toolbox, select view name from drop down list and when I click "Preview".