Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS Excessive Scale/Precision Flatfile Destination

$
0
0

Summary

Whenever I output real numbers from a source to a flat file destination, SSIS always outputs the some numbers with excessive scale and others with the proper scale for the same numbers each time. For example a number such as 36.4854 would be outputted as 36.4853999999997, while a number such as 10.9841 would be outputted as they are. Again, this would not be random. I tried using the ROUND function and casting to the DT_NUMERIC and DT_DECIMAL types in a Transformation task, but the results are exactly the same. 

 

Source

 

Type: ADO Source

 

External column

  • DataType is DT_R8 and cannot be successfully changed. For instance, after changing it and clicking “OK”, it reverts back to DT_R8.

 

Output column

  • DataType is DT_R8 and if the above is changed to DT_NUMERIC, it will cause an error when this is changed to DT_NUMERIC to match it.

 

Transformation

 

As stated above, several functions were used to change the data type, but the results remained the same. It is empty for this column for now.

 

Destination

 

Type: Flat File

 

DataType: string[DT_STR] or DT_NUMERIC with scale of 6.

 

 

Environment

The version of my product is SSIS under SQL Server 2008 R2 using Visual Studio 2008 Version 9.0.30729.4462 QFE. The environment is Windows Server 2008 R2 Datacenter 64-bit.

Thank you for your help in advance.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>