SSIS Export SQL Table Data to Semicolon Delimiter Text File

This SSIS Integration Services article shows how to export SQL Server table records or data to a Semicolon delimiter text file with an example.

The below image shows the records in the Employee table.

Employee Table

SSIS Export SQL Table Data to Semicolon Delimiter Text File

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

Add Data Flow Task

Double-click to open the Data Flow Region. Then, drag the OLE DB Source and double-click on it to open the Editor. Next, click the New button to configure the OLE DB Connection Manager. Here, we have selected the existing one, but you can create a new one by clicking the New button (arrow pointed).

Add OLE DB Source to configure OLE DB Connection manager

Choose the Employee table from the list. Next, go to the columns tab to review the columns and click the Ok button.

Select the Employee table

Drag the flat file destination and relate the OLE DB source to it. Next, Double-click on the flat file destination to open the Editor, and click on the new button to pick the Delimited as the flat file format.

Choose SSIS File Delimiter to Export Data to Semicolon Delimiter Text 5

Click the Browse button to create a new file to store the Semicolon delimiter records.

Browse the text file

Next, checkmark the Column Names in the first data row option to copy the headers.

checkmark the Column Names in the first data row

Within the Column tab, change the Column Delimiter to Semicolon {;}. 

Change the Column Delimiter in SSIS to Export SQL Table Data to Semicolon Delimiter flat file

Use the advanced section to change the Data type or column names and click OK to close the window.

change the Data type or column names

Move to the Mappings tab within the Flat File Destination Editor to check the input and available destination column mapping.

Check Mappings

Run the SSIS Export SQL Table Data to Semicolon Delimiter Text File package.

Execute the SSIS Export SQL Table Data to Semicolon Delimiter Text File package.

As you can see, the text file has all the records where a Semicolon separates each column.

text file with Semicolon separated columns