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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:27:06+00:00 2026-06-15T14:27:06+00:00

As part of a data import process, we need to massage text to have

  • 0

As part of a data import process, we need to “massage” text to have it conform to certain standards. The process involves downloading an XML file from a remote server, inserting the data into “working” tables for processing, then moving the data from the “working” tables to the live tables.

Case in point, there are instances of the slanted quote character (’) that we want to replace with the straight quote character (‘).

We also want to have this rather easy to extend. If we need to add new replacements/deletions, it should not require a rebuild of the import process project.

There are two schools of thought on our team:

  1. Perform the massaging in code. Have an XML file in the project that has the various characters we want to replace/remove. Whenever we need to add new replacements/deletions we can update the file.

  2. Perform the massaging in SQL. When we are transferring the data from the “working” tables to the “live” tables, run each field through a SQL function that performs the replacements/deletions which we can edit at any time.

Is one method “better” than the other? Will the SQL method be faster? Are there certain things we can do easier, or at all, in code that would be difficult/impossible in SQL?

Thanks in advance.

  • 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-06-15T14:27:07+00:00Added an answer on June 15, 2026 at 2:27 pm

    If there is a lot of data I would consider using SQL as this approach can be optimised to scale more efficiently once you understand the input data and the more common replacements or cleaning functions. If you perform the massaging in code then you will almost certainly need to take an iterative approach to the replacements where the time taken to run will increase in line with the data volumes increasing.

    If the amount of data to process is small enough that performance is not an issue then doing the cleaning in code will probably give you greater flexibility.

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

Sidebar

Related Questions

We are currently upgrading a current data import process we have written in C#.
In a part of my data warehousing stored procedures, i have a procedure that
I've one situation where I need to copy part of the data from one
I have a table part with a few demo data as below in Oracle
I am working with a data view web part in SPD 2010. My xml
I have a SQL data calculation which is used as part of where clause
An ex-coworker of mine wrote the following UPDATE as part of a data import
I am attempting to import data into Orchard CMS. I have a custom type,
I have the folling Perl script that I am using to import data directly
I am trying to process a text file of more than 1GB and saving

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.