Dynamagically no DTS will not pick things up. Can you do it in code? Yes
you can. You will need to remove all the current transformation objects,
add your source columns to the SourceColumns property of the transform,
your destination columns to the DestinationColumns Property of the transform
and then add the transforms to the datapump.
Sound like hard work?
Ping me by eMail and I have a working example
--
--
Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know
<anonymous (AT) discussions (DOT) microsoft.com> wrote
Quote:
Does anyone know if it is possible to programmatically map
columns (source to destination) in a dts package. I call
a stored procedure from vb that returns a sql select
statement. This statement is then set as a property of a
DTS package and the package is executed. I've been asked
to add the functionality of the sql statement changing.
Either adding or deleting colums from the select list.
The dts package still runs, but only on the old mappings.
It does not pick up any new fields that are added the the
sql statement. |