sql server - Why when I try to output a query result to CSV in SSIS instead of decimal numbers I get ones and zeros? -
I have created a very simple data flow in SSIS that is running inside a loop.
I have a simple OLE DB source control that is connecting to a SQL server and running a very complex query to split daily data according to a 30 minute interval. As has been shown below.
Then I have a flat file destination control that is taking the output from OLE DB source control and saving it as a comma-delimited CSV file. As you can see above the numbers, the decimal number is at two decimal places, but in the CSV file it appears as another zero.
What can I do to get the CSV query to match the input input? I tried to convert the numbers into queries but I got the same results. I also tried to change the column type in the Connection Manager, but got the same results.
I have managed to import all the dataType properties for each column of data To solve the issue, I had to convert them to 'double-special float [DR-R8]' and then the CSV was saved with the proper decimal values.
Very annoying, I hope someone helps.
Comments
Post a Comment