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 6121579
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T15:48:00+00:00 2026-05-23T15:48:00+00:00

A generic data import module: I am reading data from any of 6 data

  • 0

A generic data import module:
I am reading data from any of 6 data source types (CSV, Active Directory, SQL, Access, Oracle, Sharepoint) into a datatable.

This data is then possibly changed by the users by casting, and calculation per column and written to a SQL table (any table selected by the user).

Doing this seems easy except that the user must also be able to replace some fields in the datatable with values from fields in the target SQL database (lookups)

I would really like to do all of the above to the datatable before sending to the target databes, but cannot, repeat NOT use Linq since the table structures (both source and target are unknown and do not represent a specific business object.

tl;dr I need to do data transformations on any datatable. Which is a good way (No Linq!)

EDIT: The source and target tables are different in structure.

  • 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-23T15:48:00+00:00Added an answer on May 23, 2026 at 3:48 pm

    I ended up writing a class for each database type all part of one interface, and using a GenericConnection based on DbConnection for the differenct types of sources.

    I broke the process up into:

    1. Import
    2. Transform
    3. Write
      stages that can be saved and reopened for re-use or editing.

    The Transform part consists of:

    1. Casting
    2. Calculations (string,int,decimal,date,bool) as Add, Subtract, Divide, Multiply, AND, OR, Substring, Replace
    3. Lookups against other tables
    4. Direct copying

    The transformations can be queued so that one column of data can go through any amount to match the target before being written to target.

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

Sidebar

Related Questions

Trying to make a generic PL/SQL procedure to export data in specific XML format,
I'd like a generic method for retrieving the data from a vector. I have
I am doing an import of data from excel spreadsheet to SQLServer 2005 via
I'm using the Apache BeanUtils setProperty method to import data from an Excel file
I have 2 classes. With the Generic Data Access class I can get the
Is there any version of split that works on generic list types? For example,
I am sending data from android to a Generic handler .ashx page in asp.net
In my application i can import csv file but i have data in excel
We're working on creating a Windows service to import/export data from various places. Our
I am working with a generic data structure, say MyGeneric<Type> . There is a

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.