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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T16:26:37+00:00 2026-05-15T16:26:37+00:00

I’m tring to create an SSIS package to import some dataset files, however given

  • 0

I’m tring to create an SSIS package to import some dataset files, however given that I seem to be hitting a brick

wall everytime I achieve a small part of the task I need to take a step back and perform a sanity check on what I’m

trying to achieve, and if you good people can advise whether SSIS is the way to go about this then I would

appreciate it.

These are my questions from this morning :-

debugging SSIS packages – debug.writeline

Changing an SSIS dts variables

What I’m trying to do is have a For..Each container enumerate over the files in a share on the SQL Server. For each

file it finds a script task runs to check various attributes of the filename, such as looking for a three letter

code, a date in CCYYMM, the name of the data contained therein, and optionally some comments. For example:-

ABC_201007_SalesData_[optional comment goes here].csv

I’m looking to parse the name using a regular expression and put the values of ‘ABC‘, ‘201007‘, and

‘SalesData‘ in variables.

I then want to move the file to an error folder if it doesn’t meet certain criteria :-

  • Three character code
  • Six character date
  • Dataset name (e.g. SalesData, in this example)
  • CSV extension

I then want to lookup the Character code, the date (or part thereof), and the Dataset name against a lookup table

to mark off a ‘checklist’ of received files from each client.

Then, based on the entry in the checklist, I want to kick off another SSIS package.

So, for example I may have a table called ‘Checklist’ with these columns :-

Client code       Dataset          SSIS_Package
    ABC           SalesData        NorthSalesData.dtsx
    DEF           SalesData        SouthSalesData.dtsx

If anyone has a better way of achieving this I am interested in hearing about it.

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-05-15T16:26:38+00:00Added an answer on May 15, 2026 at 4:26 pm

    That’s an interesting scenario, and should be relatively easy to handle.

    First, your choice of the Foreach Loop is a good one. You’ll be using the Foreach File Enumerator. You can restrict the files you iterate over to be just CSVs so that you don’t have to “filter” for those later.

    The Foreach File Enumerator puts the filename (full path or just file name) into a variable – let’s call that “FileName”. There’s (at least) two ways you can parse that – expressions or a Script Task. Depends which one you’re more comfortable with. Either way, you’ll need to create three variables to hold the “parts” of the filename – I’ll call them “FileCode”, “FileDate”, and “FileDataset”.

    To do this with expressions, you need to set the EvaluateAsExpression property on FileCode, FileDate, and FileDataset to true. Then in the expressions, you need to use FINDSTRING and SUBSTRING to carve up FileName as you see fit. Expressions don’t have Regex capability.

    To do this in a Script Task, pass the FileName variable in as a ReadOnly variable, and the other three as ReadWrite. You can use the Regex capabilities of .Net, or just manually use IndexOf and Substring to get what you need.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I have just tried to save a simple *.rtf file with some websites and
I have a bunch of posts stored in text files formatted in yaml/textile (from
I have some data like this: 1 2 3 4 5 9 2 6
I am trying to understand how to use SyndicationItem to display feed which is
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I'm new to using the Perl treebuilder module for HTML parsing and can't figure

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.