Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7552571
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:47:26+00:00 2026-05-30T10:47:26+00:00

At the moment I’m working on a quite tricky transferring from a .csv file

  • 0

At the moment I’m working on a quite tricky transferring from a .csv file to DB. I have to develop a package/solution/xxxyyy that handles a flow of data from this .csv file to my SQL Server DB (the .csv is updated with new data everyday).

The approach that my boss “suggested” I should use is through SSIS (normally I would have wrote some kind of “parser” to easily convoy the data from the .csv). The fact is that I have quite a bit of transformation to do.

i.e.

An employee has this fields:

name;surname;id;roles

The field “roles” is formatted like this:

role1,role2,role3

This relationship in my db is mapped in 3 different tables:

tblEmployee
    PK_Emp | name | surname

tblRoles
    PK_Role | roleName

tblEmployeeRole
    PK_Emp | PK_Role

So, from the .csv I have to extract the roles of a single employee, insert those in tblRoles (checking that there’s no duplicate). Then I have to manage the relationship in tblEmployeeRole.

Considering that this is just an example of one of the different transformations that I have to manage I was wondering if SSIS is the best tool to achieve my goal (loads if script components). When I explained my perplexities to my boss he came up with this “idea”:

Use SSIS to transfer the data, as they are, in a temporary table then handle the different transformations through stored procedures.

From the very little I know about stored procedure, I’m not sure that I should follow this idea.
Now, considering that my actual superior isn’t that enlightened project manager (he usually mess up our work with bizarre ideas) and considering the fact that I’m not such an expert neither in SSIS nor in stored procedure, I’ve decided to write here and see if anyone can explain me if one of the previous approaches is the right one or if I have to consider some other (better) solution.

Sorry for my poor English, ty for any help =)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:47:27+00:00Added an answer on May 30, 2026 at 10:47 am

    I would insert the data from the CSV file as-is.
    Then do any parsing in the database end. If this is something that has to be done often I would then take any scripts you have made to do this and create procedures/functions from that. This question is a bit grand-scheme so this is only a general solution. If you need help doing the parsing of the roles into the look up tables then that would be more specific and of better use.
    In general when I work with massive flat-file data sets that need to be parsed into a SQL structure:

    • Import the data as-is
    • Find the commonalities among the look up codes
    • Create the base look up tables (in your case it would be tblRoles)
    • Create a script to insert into both tblEmployee and tblEmployee role
    • Once my test scenarios work then I worry about combining each component step into one monolithic SSIS or stored procedure.

    I suggest something similar here. Break this import task into small pieces and worry about the grand design later. SSIS, procs, compiled code…any of these might work for you. You just need to know what you need it to do.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

At the moment I have this: try{ // Create file FileWriter fstream = new
At the moment I have a windows service written in C# that waits for
At the moment I'm working on a system that caches dynamically created files, nothing
So at the moment I have a simple reminder app that you enter some
At the moment we have a number of tables that are using newid() on
At the moment I have a website that is connecting to the database the
At the moment I am working on a project admin application in C# 3.5
At the moment, I'm creating an XML file in Java and displaying it in
At the moment I use PHP for almost everything I develop for the Web
At the moment I have setup a custom ok cancel dialog with a drop

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.