I've done quite a bit of searching on this but haven't been able to come up with a solid solution. I have a use case where for example I want to include the date in the file name, let's say I use the following formula:
"EmployeeCount_"+(DT_STR,4,1252)DATEPART( "yyyy" , getdate() )+ RIGHT("0" + (DT_STR,4,1252)DATEPART( "mm" , getdate() ), 2) + RIGHT("0" + (DT_STR,4,1252)DATEPART( "dd" , getdate() ), 2) +".csv"
This works out great as a variable, but what if I want to pass this function as a parameter from SSMS? Is there a way for Parameters to be evaluated as a expression? I attempted passing the parameter into a variable to achieve the desired effect to no available.
Am I missing something here, or should I just be hard coding this into a variable / calculating this elsewhere and pulling it into SSIS from a table?