sql2015
sql2015

Reputation: 611

SSIS email task attachment property

the ssis email task has an attachment property. are you able to use an expression or variables as the attachment location? as I want to attach a file that gets generated during the ssis package but it has a date/time stamp in the path so will always be different

Upvotes: 1

Views: 2100

Answers (1)

Chris Albert
Chris Albert

Reputation: 2507

You can use an expression as the attachment location. Click on the Send Mail Task, then go into expressions on the properties pane. Choose FileAttachments in the property drop down menu, and enter your expression.

enter image description here

enter image description here

Upvotes: 1

Related Questions