1

I have an SSIS package which loops over an array of dates. On each iteration I would like to append the current date to a string to get a full string of all the dates iterated.

What I did was to make an expression where: dateconcatvariable + ", " +currentdatevariable

However, dateconcatvariable is resetting on every iteration of the for loop and so in the end I end up with the last date iterated over instead of all the dates.

the variable is a package level variable.

Any ideas on how to get a concatenation to happen on SSIS?

Thanks!

2
  • I'm a bit lost on your design. Could you post a screen shot of the Control Flow and the Data Flow? Commented Aug 29, 2013 at 15:55
  • Never mind, I figured it out using a script task. Commented Aug 29, 2013 at 16:17

1 Answer 1

1
1. Create a string variable @User::var
2. Use an Expression component and set the expression to @User::var = @User::var + (WSTR, 15)@User::yourdatevar

This should give you the general idea.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.