SSIS Flat File Connection Manager

This article shows how to create a Flat File Connection Manager in SSIS, load its data into the Integration Services, and transform its data.

The below screenshot shows that it is a simple text file, and a Comma separates each column.

CSV File

SSIS Flat File Connection Manager

Within the Solution Explorer, right-click on the Connection Managers folder and choose New Connection Manager.

Choose Add New Connection Option

Select the FLATFILE option, which helps connect with flat files and read their data. For more Data Loading options >> Click Here.

Choose the FILE Connection Manager from SSIS List

It opens the SSIS Flat File Connection Manager Editor window. Change the Name and add a description as per your need. Let me click on the Browse button to choose the file. Here, we have chosen the Employee text file.

Format: You must provide how the flat file separates Column values.

  • Delimited: Comma, Space, etc.
  • Fixed Width: Fixed amount of space for each column.
  • Ragged Right: Fixed width.

Text Qualifier: None. Use double quotes if the columns and row values are enclosed in double-quotes.

Use SSIS Flat File Connection Browse button to choose Employee file

Use the Column tab to check whether the columns are appropriately separated. If not, change the Row and Column delimiters.

Check the Columns Tab and change Row and Column Delimiters

Use the advanced tab to change the Data type of each column as per your requirement.

advanced tab to change the Data type

Now you can see the Flat File Connection Manager. Add data Flow Task and double-click on it.

SSIS Flat File Connection Manager

Add Flat File Source and double-click to choose the Flat File Connection Manager we created earlier.

SSIS Flat File Source to Choose the Connection Manager

Check the columns.

Verify Columns

Add Copy Column and add a data viewer to see the data. Next, run the SSIS package to view the result.

Run theSSIS Flat File Connection Manager Package