A community member has associated this post with a similar question:
SSIS - how to export csv to display long number instead of display 13.4+3E

Only moderators can edit this content.

SSIS - export to csv file but can't show the long number correctly (text column)

nononame2021 256 Reputation points
2022-06-20T08:15:21.887+00:00

my SSIS is to output the CSV file. but i found that my data is stored in SQL server is nvarchar(50). how can i display the value in CSV correctly.

the actual data stored is: 44011164011111100
but it show in excel contains special character as : 212810-image.png

212905-image.png

my column has the following data now. the first one can't show correctly if it contain too many numeric.
212856-image.png

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,453 questions
{count} votes

4 answers

Sort by: Most helpful
  1. ZoeHui-MSFT 32,821 Reputation points
    2022-06-20T08:35:04.307+00:00

    Hi @nononame2021 ,

    It should be related with the cell format.

    Edit the csv file and right-click format cells and choose number.

    212839-image.png

    Or you may use Data Conversion to convert the nvarchar to DT_DECIMAL and then load to the csv.

    212874-image.png

    Regards,

    Zoe


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

  2. nononame2021 256 Reputation points
    2022-06-20T08:57:16.24+00:00

    how to format to special in SSIS

    below is csv setting.

    212923-image.png

  3. Olaf Helper 40,816 Reputation points
    2022-06-20T09:21:00.987+00:00

    but it show in excel contains special character as

    Has nothing to do with SSIS and your export.
    That's the way how Excel represent large number, as exponential value / scientific notation, see
    https://en.wikipedia.org/wiki/Scientific_notation

    0 comments No comments
  4. nononame2021 256 Reputation points
    2022-06-20T09:27:49.523+00:00

    or how can i output to format the cell when it contain long number

    212910-image.png

    0 comments No comments