0

In SSIS, i have a select query and one of the column result returned is a decimal value. The statement is similar to

select (2*100.0)/19

i get

10.526315

Now, since i need this to be rounded off to two decimal places, used the below format.

 select FoRMAT((2*100.0)/19,'N2')

i get

10.53

Now, when i execute the sql on the editor, the expected result is seen. However, when the ssis destination is a csv file, the csv has 12 decimal places

10.530000000000

What exactly needs to be corrected so that it just shows 2 decimal places

 10.53
4

1 回答 1

1

假设您使用的是平面文件目标,您需要设置输出的比例。这是在高级选项卡下。

在此处输入图像描述

于 2013-09-24T11:02:57.420 回答