richard.hunt
2008-10-28 21:32:06 UTC
Ok,
So here is what I have. I have 2 different sql queries that need to go into
the same flat file. What I've done is created a dynamic variable which
calculates the date and time as such (SUBSTRING(REPLACE(REPLACE(REPLACE(
(DT_STR, 50, 1252) GETDATE(),"-","")," ",""),":",""),1,14) ) I then use this
to concatenate to another variable with the directory path to basically come
up with a file path for a new flat file. I then create 2 Flat file
connections with different columns but point to the same variable that stores
the connection information. This works. The issue is because the file is
date sensitive, when the package runs, depending on how long it takes to
write the data to the file, I end up with 2 different files because the time
has changed.
My question, how do I get the variable to calculate once during the entire
package?
I hope that I am clear in communicating my question.
Thank you
So here is what I have. I have 2 different sql queries that need to go into
the same flat file. What I've done is created a dynamic variable which
calculates the date and time as such (SUBSTRING(REPLACE(REPLACE(REPLACE(
(DT_STR, 50, 1252) GETDATE(),"-","")," ",""),":",""),1,14) ) I then use this
to concatenate to another variable with the directory path to basically come
up with a file path for a new flat file. I then create 2 Flat file
connections with different columns but point to the same variable that stores
the connection information. This works. The issue is because the file is
date sensitive, when the package runs, depending on how long it takes to
write the data to the file, I end up with 2 different files because the time
has changed.
My question, how do I get the variable to calculate once during the entire
package?
I hope that I am clear in communicating my question.
Thank you