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.
SSIS - how to export a table without column name into excel
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")?
template is blank and only rename the worksheet as summary
there are 2 column in OLD source
in excel destination, there is only 1 column, how to make it same as source to display 2 columns without column name.
SQL Server Integration Services
6 answers
Sort by: Most helpful
-
Yitzhak Khabinsky 27,091 Reputation points
2022-06-16T13:11:10.097+00:00 -
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.
-
ZoeHui-MSFT 41,536 Reputation points2022-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.
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.
-
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?
-
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