RE: How do I obtain a FlatFileColumn object? -
11-05-2006
, 09:10 PM
Hello Amnon,
You cannot (at least i've tried hard enough) to convert a IDTSConnectionManagerFlatFileColumn90 into a FlatFileColumn object, but there is a way to get it's name. The example is posted by Microsoft but it is a little bit hidden... Here it goes, just completing your code:
nextCol = (IDTSConnectionManagerFlatFileColumn90)enm.Current ;
IDTSName90 name = nextCol as wrap.IDTSName90; //this Interface represents the name of various objects from the DTS namespace
string colName = name.Name; //There it goes! here is the name of the column
I Hope it helps!
Fil
EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com |