Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

SSIS Creating a Variable that holds a constant.

$
0
0

Greetings All, I have an SSIS package that does a simple ETL load of a few tables.

I want to be able to log metadata about the load and one of the items I want is to create a group identifier for the load, this identifier will be of the form:

yyyymmddhhmiss

My ETL loads several tables and after each table load I want to stamp a record in my logging table indicating that  the table that just loaded was successfully loaded, it had N rows loaded, and it was part of this group (again, yyyymmddhhmiss).

I created a variable that forms an expression to accomplish the "yyyymmddhhmiss".  However, every time I reference the variable the date changes and so does my group identifier.

Question: In SSIS (not make any db call) can I create a variable, which is based on a date, that is static. IOW, call it once on the control flow page then reference the value throughout my package and have it be a constant?


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>