OK, I have never really worked with this but have taken over a project and have 1 small issue.
Basically I am extracting data out a database to a CSV file.
All is working except this one issue which I cannot seem to solve.
In the CSV file I am getting an amount field looking like this: 12345.67000000000000000000
I don't want the trailing zeros.
The source field is this:
CAST(sum(Amount) as DECIMAL(18,2)) as [Amount],
which is defined as decimal(38,20) in the database.
In the Flat File Connection Manager I have this field as DT_DECIMAL with DataScale 2.
What am I missing.
TIA.
Basically I am extracting data out a database to a CSV file.
All is working except this one issue which I cannot seem to solve.
In the CSV file I am getting an amount field looking like this: 12345.67000000000000000000
I don't want the trailing zeros.
The source field is this:
CAST(sum(Amount) as DECIMAL(18,2)) as [Amount],
which is defined as decimal(38,20) in the database.
In the Flat File Connection Manager I have this field as DT_DECIMAL with DataScale 2.
What am I missing.
TIA.