Exporting Summary of money data to .CSV file using DTS

  • Hi Folks .

    I have been strugling in getting the two decimal values(It is rounding to Numaric Value with no Decimals) in the .CSV file after I have done with DTS by Summing up all the Money values of Money data field from a Table..I did not have problem in getting decimals exporting to .CSV file.

    This is example

    1. Select Sum(Money) from Moneytable 

        in QUERY Analyzer i am getting like this ..989988.92

       after exporing to .CSV file i am getting it as  ..989989 (Problem)

     

    1. Select Money from Moneytable 

        in QUERY Analyzer i am getting like this ..82.92

       after exporing to .CSV file i am getting it as  ..82.92  (No Problem)

     

    Can any body has solution please let me know

    Thanks.

  • Can you CAST(SUM(Money) as numeric(12,2)) or something similar?

    -Pete

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply