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

  • Home
  • SEARCH
  • 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 900073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T15:19:29+00:00 2026-05-15T15:19:29+00:00

The company I work for has a lot of systems where the source data

  • 0

The company I work for has a lot of systems where the source data originates as a flat file or Excel workbook. These files are then imported using DTS into a SQL Server database.

Quite often these files contain various control characters (for instance I’ve just spent an hour finding that some records have a \0 in them which apparently SAP like to pad things with) which ideally we would like to strip out before they get into our database.

I’ve not used DTS/SSIS that heavily, but I thought that there must be something already in them, or at least a sanitisation best practice, that I should be using?

Any ideas on how to do this in a repeatable fashion across many imports would be appreciated.

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

    I can only speak coming from my experiences with SSIS, so I apologise if this is only marginally useful.

    In terms of general sanitation, I haven’t come across any sort of purpose-build component for this job. I assume that’s due to the notion that different scenarios can have widely different definitions of “bad data”, but arguably things like stripping out non-printable characters might be a common business requirement so this is somewhat surprising.

    Naturally you can always fall back on the Derived Column Transformation or, in more complex cases, the Script Component, but these hardly make replication of the logic across packages painless. There are cases where we’ve used CozyRoc components to create scripts that we could share between packages, but in addition to having to actually have access to those components in the first place, it still involves a certain level of setup every time you need the functionality.

    So, in cases like this, I personally feel like the best option is to consolidate your common sanitation routines into a Custom Data Flow Component. We developed one for ourselves to handle some very common data validation logic, and set the component editor up so that you could select checkboxes to enable whichever checks you wanted applied to a given column. Then it just becomes a matter of drag-and-drop and wiring up your data flow. At least for us, it was definitely worth taking the time to develop the component.

    I don’t know what DTS offers in this regard (I think it’s fairly limited, or at least not friendly, but I could be wrong), so this is likely not useful for your legacy packages. I feel like Cade’s solution would probably be most stress-free in that case, assuming it’s feasible for your input data.

    As far as general SSIS insight goes, I’ve found Jamie Thomson’s blogs (previously here) very helpful, so you might want to check to see if he’s discussed this particular topic before.

    In any case, hopefully this was at least a little helpful, and good luck coming up with a solution.

    On a side note: Kudos for wanting to sanitize your data before sticking it in your database. We get data from a particular vendor who doesn’t ever clean their data, then tries to shove it in XML to send it to us via a web service. Needless to say, the XML parser isn’t too fond of non-printable characters.

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

Sidebar

Related Questions

I currently work at a company that has a lot of custom applications that
the company I work has assigned me the task to create a system to
Here's my scenario: the company I work has applications deployed to a 32bit Windows
the company I work for has a web-based user interface which paying clients log
The company I work at has very specific and unique needs for a help
I am currently on a short research project. The company I work at has
The company for which I work for has built a large ASP.NET MVC application
I work at a company that has many clients that have their own website
Our company has a product which relies on local database to work (it allows
It's a pretty classic problem. The company I work for has numerous business reports

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.