Multiple different structured CSV files load into single table using SSIS

Govarthanan Venkatesan 66 Reputation points
2020-12-12T16:43:10.343+00:00

For example,

I need to load all loan CSV files into a single table

I am getting loan contact feed from one third party, getting loan amount feed from another third party, like that I am getting each set of fields from different third party in multiple CSV file. I need to do load all CSV files into single table (Loan_Full_Details).

Note: Each CSV structure different but it won't change dynamically.

CSV1 - ID, Name, Contact_Number
CSV2 - ID, Sanction amount, Sanction date
Destination Table - Loan_Full_Det

Please help me on this request.

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,702 questions
Developer technologies Transact-SQL
{count} votes

Accepted answer
  1. Monalv-MSFT 5,926 Reputation points
    2020-12-14T09:06:40.763+00:00

    Hi @Govarthanan Venkatesan ,

    The Union All transformation combines multiple inputs into one output. For example, the outputs from five different Flat File sources can be inputs to the Union All transformation and combined into one output.

    So we can use many Flat File Sources and one Union All Transformation in SSIS Data Flow Task.
    47896-df.png

    47897-unionallt.png

    47907-mappingdes.png

    Best Regards,
    Mona

    ----------

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
    Hot issues in November--What can I do if my transaction log is full?
    Hot issues in November--How to convert Profiler trace into a SQL Server table?

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Guoxiong 8,206 Reputation points
    2020-12-12T20:53:56.45+00:00

    There are two options you can try. Option one is to load different CSV files to the different staging tables and then to use T-Sql to merge data from those staging tables to the destination table. The other one is to load different CSV files in the Flat File Sources in the Data Flow and then to use Merge Join task to import data to the destination table.

    1 person found this answer helpful.

  2. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.