SQL 2019 SSIS Package - Flat File Destination Custom Property - Header

  • Is there any easy way to programmatically set the value of the Header "Custom Property" of a Flat File Destination before the package executes that particular Data Flow task ?     The property itself doesn't appear to have the ability to use expressions.   Might a Script Task be able to accomplish this ?

    Steve (aka sgmunson) 🙂 🙂 🙂
    Rent Servers for Income (picks and shovels strategy)

  • I finally found the solution.   While the "Editor" and "Advanced Editor" for the Flat File Destination do NOT have the ability to use an expression, it turns out that such an element is at a level where the Data Flow Task properties include that element, so it can have a property set there instead...    Now I can have the current date be a part of the custom file header, while a Script Task takes care of adding the custom trailer.

    Steve (aka sgmunson) 🙂 🙂 🙂
    Rent Servers for Income (picks and shovels strategy)

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply