First - I am not very good at SSIS and I am not looking to rewrite the package, only to make as small a footprint for my change as possible.
We have an ETL package which imports several hundred DB2 tables into SQL Server each night on several hundred client managed SQL Servers. The SSIS package has been in production without any changes for over 6 years. It works well and is very flexible. To import a new table you only need to insert a row into an import configuration table. But the package is also limiting in that it only imports the first 100 characters of any DB2 column. That has not been a problem for 6 years, but now there are some DB2 columns that are greater than 100 characters.
The Data Flow component -> Advanced Edit -> Input and Output Properties -> External and Internal Column definitions has the column Length for all columns as 100. The column names are C0, c1, c2, c3, etc. The actual SQL tablename is in the User::TableName variable. I would like a way to run a tsql script (or some script) that would look at the SQL TableName definition and if any of the columns from the list of columns to import are a length greater than 100 then change that column's length in the package. So say table CustAddr's third column to import, AddressLine1, was varchar(125) then change the External and Internal column C3 to Length 125.
Is this possible?