troubleshooting Question

Restoring Missing Column Delimiters in SSIS

Avatar of Erik Hauser
Erik HauserFlag for United States of America asked on
Microsoft SQL ServerSSIS
64 Comments4 Solutions865 ViewsLast Modified:
Using a script task or by using a regular expression, is there a way in SSIS that I can parse a flat file, have it find places where there are missing column delimiters and fix them?

For example:

A file with - column delimiter | (pipe) and text qualifier " (double-quote) may come across a value like

|"1"2.5"| which should be |"1"|"2.5"|  (an |" was added).

I also realize that I could use the REPLACE function within a Derived Column Task to do the same thing but I am unable to figure out the correct function that I would use.

Go someone get me started?

Thanks,
Erik
ASKER CERTIFIED SOLUTION
Megan Brooks
SQL Server Consultant

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 4 Answers and 64 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 4 Answers and 64 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros