SSIS Load Data From Pipe Delimiter File to SQL Server

This SSIS Integration Services article shows how to load data from a pipe or vertical bar delimiter text file to the SQL Server table with an example.

The below screenshot shows the records in the Employee With Vertical Bar Delimiter text file.

Text File

SSIS Load Data From Pipe or Vertical Bar Delimiter File to SQL Server

Drag and drop the Data Flow Task into the control flow region.

Add Data Flow Task

Double-click to open the SSIS Data Flow Region. Then, drag the flat file source and double-click on it to open the Editor. Next, click the New button to open the Flat File Connection Manager Editor window.

Add Flat FileSource for SSIS to Load Data From Pipe or Vertical Bar Delimiter to SQL Server

Click the Browse button to choose the Pipe or Vertical Bar Delimiter text file.

Use Browse button to choose the File

If the text file’s first row has headers, checkmark the Column Names in the first data row option.

Checkmark the Column Names in the first data row

Within the Column tab, change the Column Delimiter to Vertical Bar {|}. 

Change Column Delimiter in SSIS Load Data From Pipe File to SQL Server

Use the advanced section to change the Data type. Here, the column data type must match the destination table; otherwise, it throws an error. After you finish, click OK to close the window.

Change the Column Data types

Next, drag the OLE DB Destination and double-click on it to open the Editor. Next, click the New button to configure the OLE DB Connection Manager. Here, we have chosen the existing one.

Add Ole DB Destination to configure OLEDB Connection Manager

Select the Load Data from the Pipe Space File table from the list. If not, click the new button to create a new one.

Select The Table

Next, go to the Mappings tab to check the input and available destination column mapping.

Check the input and available destination column mapping

Run the SSIS Load Data From the Pipe or vertical bar Delimiter File to the SQL Server package.

Run the SSIS Load Data From the Pipe or vertical bar Delimiter File to the SQL Server package

Open the SQL Management Studio to see the result.

View SQL Table