sql - SSIS Auto Mapping to OLE DB Destination -


i wondering if solution following problem exists in ssis.

i have 2 column table (id , name fields) create 3rd column sql script task, called filename. created if column doesn't exist. package displayed below @ both control @ data flow levels.

my package create column "filename" fine if doesn't exist, instead of pulling name of file correctly in loop, null "filename" wasn't mapped destination (as didn't exist before). can fix going destination , mapping filename loop "filename" column created, means have re-run package.

my core question, there way ssis automap variable contains filename destination column "filename" gets created outside loop? or have manually map thing every time work table didn't have column in there when ran package.

thanks,

enter image description here

enter image description here

make sure in script - return something. on success return file name on failure return null or ''. in case 1 time mapping @ oledb destination fine.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -