Maria
Maria

Reputation: 393

SSIS generating csv file without headers

I’m making an SSIS package to create a CSV file using OLE DB Source and Flat File Destination.

When I get the file it doesn't contain the headers but they are clearly defined in the destination.

I've tried all the options related to this:

Upvotes: 2

Views: 4265

Answers (1)

DhruvJoshi
DhruvJoshi

Reputation: 17126

Please check the option in the Flat file connection manager as below

Just in case this doesn't work then the setting are not being carried over to your config files. In such cases there are two workarounds:

  1. Editing the .dtconfig to edit "firstcolumnhasnames" to 1 adds the column names without needing to delete the connection from the package.
  2. delete the destination connection, and recreate from scratch.

Upvotes: 1

Related Questions