Numeric data type conversion from Oracle to SQL Server
Posted on 2014-11-23
I am creating SSIS package. source data is Oracle, destination database is MSSQL 2008 R2
In Oracle, I have data type
The field "conversion_rate" 's data type is number. It results like this 6.16446800641105
In MS SQL,
I create a corresponding table and a field and define data type is float
In the conversion task mapping
I put NUMBERIC (DT_NUMBER), precision =8, Scale=30
When I run the package, it fails
[OLE_SRC_RateTable ] Error: There was an error with output column "CONVERSION_RATE" (1866) on output "OLE DB Source Output" (1218). The column status returned was: "Text was truncated or one or more characters had no match in the target code page.".
[OLE_SRC_RateTable ] Error: The "output column "CONVERSION_RATE" (1866)" failed because truncation occurred, and the truncation row disposition on "output column "CONVERSION_RATE" (1866)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on component "OLE_SRC_GLDailyRates" (1208) returned error code 0xC020902A. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
Any idea how to fix? What is the fit data type and conversion type to there?