SSIS - how to export a table without column name into excel

nononame2021 261 Reputation points
2022-06-16T10:30:41.11+00:00

i want to export a whole table without column name into excel, however, i add a "OLE DB Source" as a source and create SQL server connection and select the table name. ( there are 2 columns when i preview)

after that, i create a "Excel destination" and create a excel connection with setting up the outputpath from variable. and then select "Table or view" in Data access mode, when i preview the data, there is only 1 column

how to setup the output object (Excel destination), so that there are 2 columns (same as source from "OLE DB source")?

212043-image.png

template is blank and only rename the worksheet as summary

211968-image.png

there are 2 column in OLD source
211969-image.png

in excel destination, there is only 1 column, how to make it same as source to display 2 columns without column name.
212073-image.png

SQL Server Integration Services
0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Yitzhak Khabinsky 27,091 Reputation points
    2022-06-16T13:11:10.097+00:00

    It seems that your source table 2nd column has just the NULL values.
    That's why there is no 2nd column in the target MS Excel file.


  2. nononame2021 261 Reputation points
    2022-06-16T13:41:03.093+00:00

    how to make the no. of column in source and destination are same.

    0 comments No comments

  3. ZoeHui-MSFT 41,536 Reputation points
    2022-06-17T02:13:32.203+00:00

    Hi @nononame2021

    After you choose the excel connection manager, you may click new to create the excel sheet name and column name.

    212168-image.png

    If I misunderstand your issue, please incorrect me.

    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.


  4. nononame2021 261 Reputation points
    2022-06-17T06:32:12.47+00:00

    how to set the excel output connection, I need to create a excel physically and place to excel filepath, right?

    create excel and set the excel file path in excel output connection?

    0 comments No comments

  5. nononame2021 261 Reputation points
    2022-06-17T07:15:34.877+00:00

    how to create table without column name, i want to export a blank excel. how to do ?

    create table summary(
    'title' nvarchar(100)
    , "" nvarchar(100)
    )

    it will show the column name in excel

    212432-image.png

    212441-image.png


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.