Import and Export Data
- Last UpdatedFeb 20, 2026
- 6 minute read
In this section, you will learn to use the List integration components in an SSIS package. The examples refer to Excel as a data source and data destination. You can also use other data sources such as a DBF file, CSV, flat file, to name a few.
Export date to Excel
Scenario
You need to export vendor list data from the List. The SSIS package consists of two dataflow tasks, one for the vendor and one for VendorAddress. The vendor list is mapped to two tables - Vendor and Address. The data from these tables is exported to an Excel file called VendorDetails.xls.
-
Open SQL Server Business Intelligence Development Studio.
-
In Control Flow, drag and drop the Dataflow task from the Toolbox.

-
Click the Dataflow tab of the Vendor data flow task.

-
Drag and drop the List Source data flow component.
-
Double-click the List source to open the List Source property window.

-
Next you need to set the properties. Select the Repository name.
-
Select owner from the drop-down list.
-
Enter the Password.
-
Select Vendor from the list names.
-
Select the Vendor Table from the List Structure tree.
Note: Checking Export all columns option will check all the columns.
-
Click OK to save.
-
Drag the Excel Destination component. Link the List source with the Excel destination.
-
Next, you need to map the columns.
-
Right-click the List Source component and select the advanced editor.
-
Go to column mapping and map the corresponding columns from List source column to Excel sheet destination columns.

-
Go to control flow design dataflow for Address.
-
Drag and drop the Dataflow task and rename it as Address.
-
Go to dataflow task. Drag and Drop List Source component and configure the properties as explained in the above steps.



-
In the Package diagram, click on the Start Debug option in the BID to execute the package.

-
You have successfully exported data from the vendor list to VendorExport.xls.

Import data from Excel
Scenario
Importing data from a comma-separated flat file to a List called Employee List.
The Employee List is mapped with two tables, EmployeeMaster and EmployeeDetails. The comma-separated flat file contains employee information. The employee first name and last name needs to be inserted in the Employee Main Table. The employee details (Address, Phone, Email, Department, etc) needs to be inserted in the EmployeeDetails Table.
To accomplish the above-mentioned requirement, create an SSIS Package with two Dataflow tasks - one for EmployeeMaster and the second for EmployeeDetails. The steps to create the package:
-
Open SQL Server Business Intelligence Development Studio (BIDS).
-
Add the dataflow task from the Toolbox.
-
Drag and drop the flat file source component to the first dataflow task.
-
Configure the flat file data source.
-
Add the List Destination component and configure it in the second data flow task.
-
Map the column.
-
Open SQL Server Business Intelligence Development Studio.

-
Drag and drop the flat file source component.
-
Go to Control Flow.Drag and drop the dataflow task from the Toolbox.

-
Go to Dataflow tab of the Employeemaster data flow task. The Employee.txt has the following data:

-
Drag and drop the Flat file Source component, and configure the Flat file source as shown below.


-
Next, you need to add List Destination component. Drag and drop the List Destination data flow component. Double click on the List destination to open the Destination property window.

-
Next, you need to configure the General and settings properties. Select General Tab, Repository name, List name Employee, and Employee Main Table from the List Structure tree.

-
Next, you need to set the Export settings. Click the Settings tab.
-
Duplicate Check
-
Enable: Select this box to enable checking of duplicates.
-
Insert: Select this radio button if you need to insert the item to the list even if it is a duplicate item.
-
Update: Select this radio button if you need to update the item.
-
Ignore: Select this radio button for checking duplicate records. If a duplicate record exists, it will be ignored.
-
-
Click OK to save.
-
Next, you need to do Column Mapping. Right-click the List Destination component and select the advanced editor. Go to column mapping and map the corresponding columns from Flat file to List Destination columns.

-
Go to control flow design dataflow for EmployeeDetails.
-
Drag and drop Dataflow task and rename it as Employee Details.
Note: For the Child Table entry, you need to map the RecordParentItemId field in the Listdestination column.
EmployeeId is mapped to the Destination column RecordParentItemId. To get the EmployeeId Lookup, the Dataflow Transformation component needs to be used. In the Lookup component, map the number with the Employeemaster table number field and take the Id of the Employee from the Employee Maser Table.
Lookup dataflow Transformation component configuration
-
Drag and drop lookup component in the Dataflow task. Link the Flat file source to Lookup component.
-
In the columns tab map the Number with the EmployeeMaster Column Number, take the Lookup Column as Id.Give Output Alias as EmployeeId. This column can be used to map to RecordParentItemid in the Listdestination Columns mapping.

-
Drag and drop the ListDestination.
General Configuration
-
Repeat 14th Step. 1. Next, you need to set the Export settings. Click the Settings tab.
-
Select EmployeeDetails table.

-
Next, you need to set the Settings configuration. If the insertion is to Child table Enable ListItemLevel.

-
Next, you need to set the Column Mapping.

-
The Package diagram is shown below.

-
To Execute the package, Click the Start Debug option in BID.

-
After execution of the Package, the Employee data from Employee.txt has been imported in the Employee list.